summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/Modules/datetime.c3
-rw-r--r--Src/zsh_system.h2
3 files changed, 6 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index d225597c5..a81a76f1f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-11-07 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
+
+ * 39728: Src/zsh_system.h, Src/Modules/datetime.c: define
+ _GNU_SOURCE on Cygwin
+
2016-11-07 Frank Terbeck <ft@bewatermyfriend.org>
* 39849: Completion/Unix/Command/_tmux: _tmux: Remove
diff --git a/Src/Modules/datetime.c b/Src/Modules/datetime.c
index b924392c5..bb82c542f 100644
--- a/Src/Modules/datetime.c
+++ b/Src/Modules/datetime.c
@@ -27,9 +27,6 @@
*
*/
-#ifdef __CYGWIN__
-#define _XOPEN_SOURCE
-#endif
#include "datetime.mdh"
#include "datetime.pro"
#include <time.h>
diff --git a/Src/zsh_system.h b/Src/zsh_system.h
index a9cbf02d0..5339b496f 100644
--- a/Src/zsh_system.h
+++ b/Src/zsh_system.h
@@ -37,7 +37,7 @@
#endif
#endif
-#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__) || defined(LIBC_MUSL)
+#if defined(__linux) || defined(__GNU__) || defined(__GLIBC__) || defined(LIBC_MUSL) || defined(__CYGWIN__)
/*
* Turn on numerous extensions.
* This is in order to get the functions for manipulating /dev/ptmx.