Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: strptime() on Cygwin requires _XOPEN_SOURCE



On Sat, 16 Jul 2016 14:34:30 +0900
Jun T. <takimoto-j@xxxxxxxxxxxxxxxxx> wrote:
> A possible fix is to define _XOPEN_SOURCE in datetime.c (patch1 below).
> Another possibility is to define _GNU_SOURCE in zsh_system.h (patch2).
> 
> Both work OK on the latest Cygwin, but I can't test on older Cygwin.
> Maybe patch1 is better since it would have minimum side effects?

Probably, yes.  It's really hard to work out what effects a change in
the main header is going to do to all the variety of systems, even if
they're GNU based.

pws



Messages sorted by: Reverse Date, Date, Thread, Author