summary refs log tree commit diff
path: root/Src/Modules/datetime.c
diff options
context:
space:
mode:
authorJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2016-07-19 14:54:59 +0900
committerJun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>2016-07-19 14:54:59 +0900
commitfff00804002735067aef56e09e36074235077e20 (patch)
treef7d206714045fb633d043aea175f13ce9297fbee /Src/Modules/datetime.c
parent72e5fe7aab91e21d0d746ec7137a6e4e0b405e39 (diff)
downloadzsh-fff00804002735067aef56e09e36074235077e20.tar.gz
zsh-fff00804002735067aef56e09e36074235077e20.tar.xz
zsh-fff00804002735067aef56e09e36074235077e20.zip
38862: strptime(3) requires _XOPEN_SOURCE on Cygwin
Diffstat (limited to 'Src/Modules/datetime.c')
-rw-r--r--Src/Modules/datetime.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c
index bb82c542f..b924392c5 100644
--- a/Src/Modules/datetime.c
+++ b/Src/Modules/datetime.c
@@ -27,6 +27,9 @@
  *
  */
 
+#ifdef __CYGWIN__
+#define _XOPEN_SOURCE
+#endif
 #include "datetime.mdh"
 #include "datetime.pro"
 #include <time.h>