diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2016-07-19 14:54:59 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2016-07-19 14:54:59 +0900 |
commit | fff00804002735067aef56e09e36074235077e20 (patch) | |
tree | f7d206714045fb633d043aea175f13ce9297fbee | |
parent | 72e5fe7aab91e21d0d746ec7137a6e4e0b405e39 (diff) | |
download | zsh-fff00804002735067aef56e09e36074235077e20.tar.gz zsh-fff00804002735067aef56e09e36074235077e20.tar.xz zsh-fff00804002735067aef56e09e36074235077e20.zip |
38862: strptime(3) requires _XOPEN_SOURCE on Cygwin
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/Modules/datetime.c | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index 909101a2d..0d7c8328e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2016-07-19 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> + + * 38862: Src/Modules/datetime.c: strptime(3) requires _XOPEN_SOURCE + on Cygwin (newlib-2.4 or later) + 2016-07-18 Peter Stephenson <p.stephenson@samsung.com> * 38879: Src/glob.c, Test/D07multibyte.ztst: Ensure file names 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> |