Subject: Re: strptime() on Cygwin requires _XOPEN_SOURCE
From: Peter Stephenson <[email-masked]>
To: "[email-masked]" <[email-masked]>
Date: Mon, 18 Jul 2016 09:41:42 +0100
List-Id: Zsh Workers List <zsh-workers.zsh.org>

On Sat, 16 Jul 2016 14:34:30 +0900
Jun T. <[email-masked]> 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