diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2016-11-07 11:36:17 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2016-11-07 11:36:17 +0900 |
commit | f912e83505e586b917748183772140c3f3560fe2 (patch) | |
tree | b34859753768f5b0e03bdd3c80dedf85a727cdfc /Src | |
parent | 06bd2b1c85007009c21bba223773c7630febd3ad (diff) | |
download | zsh-f912e83505e586b917748183772140c3f3560fe2.tar.gz zsh-f912e83505e586b917748183772140c3f3560fe2.tar.xz zsh-f912e83505e586b917748183772140c3f3560fe2.zip |
39728: define _GNU_SOURCE on Cygwin
Diffstat (limited to 'Src')
-rw-r--r-- | Src/Modules/datetime.c | 3 | ||||
-rw-r--r-- | Src/zsh_system.h | 2 |
2 files changed, 1 insertions, 4 deletions
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. |