summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/wget/localtime-clobber.diff12
-rw-r--r--data/wget/make.sh2
2 files changed, 13 insertions, 1 deletions
diff --git a/data/wget/localtime-clobber.diff b/data/wget/localtime-clobber.diff
new file mode 100644
index 000000000..6052820a4
--- /dev/null
+++ b/data/wget/localtime-clobber.diff
@@ -0,0 +1,12 @@
+diff -ur wget-1.19.5/lib/localtime-buffer.c wget-1.19.5+iPhone/lib/localtime-buffer.c
+--- wget-1.19.5/lib/localtime-buffer.c 2018-01-19 11:19:16.000000000 -1000
++++ wget-1.19.5+iPhone/lib/localtime-buffer.c 2018-09-15 12:53:52.000000000 -1000
+@@ -23,6 +23,8 @@
+ #include "localtime-buffer.h"
+
+ #if GETTIMEOFDAY_CLOBBERS_LOCALTIME || TZSET_CLOBBERS_LOCALTIME
++#undef localtime
++#undef gmtime
+
+ static struct tm tm_zero_buffer;
+ struct tm *localtime_buffer_addr = &tm_zero_buffer;
diff --git a/data/wget/make.sh b/data/wget/make.sh
index 0c19dae88..8cd39ba67 100644
--- a/data/wget/make.sh
+++ b/data/wget/make.sh
@@ -1,4 +1,4 @@
pkg:setup
pkg:configure --with-ssl=openssl --with-libssl-prefix="$(PKG_DEST_ openssl)" --without-libpsl gl_cv_func_unlink_honors_slashes=yes
-make
+pkg:make
pkg:install