summaryrefslogtreecommitdiff
path: root/src/template
diff options
context:
space:
mode:
Diffstat (limited to 'src/template')
-rw-r--r--src/template/win323
1 files changed, 3 insertions, 0 deletions
diff --git a/src/template/win32 b/src/template/win32
index 1895f067a88..4f8b0923fe0 100644
--- a/src/template/win32
+++ b/src/template/win32
@@ -1,5 +1,8 @@
# src/template/win32
+# define before including <time.h> for getting localtime_r() etc. on MinGW
+CPPFLAGS="$CPPFLAGS -D_POSIX_C_SOURCE"
+
# Extra CFLAGS for code that will go into a shared library
CFLAGS_SL=""