summaryrefslogtreecommitdiff
path: root/data/wget/localtime-clobber.diff
blob: 6052820a4197894097b6d32422dc3b76df78517e (plain)
1
2
3
4
5
6
7
8
9
10
11
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;