summaryrefslogtreecommitdiff
path: root/data/wget/localtime-clobber.diff
diff options
context:
space:
mode:
Diffstat (limited to 'data/wget/localtime-clobber.diff')
-rw-r--r--data/wget/localtime-clobber.diff12
1 files changed, 12 insertions, 0 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;