Use of _XOPEN_SOURCE?
Howland Craig D (Craig)
Tue Mar 16 22:48:00 GMT 2010
I will prepare a patch, possibly tonight. (I wanted to do a little
direct checking into older POSIX before blindly following the GLIBC
From: firstname.lastname@example.org [mailto:email@example.com]
On Behalf Of Corinna Vinschen
Sent: Tuesday, March 16, 2010 11:49 AM
Subject: Re: Use of _XOPEN_SOURCE?
On Mar 16 11:32, Howland Craig D (Craig) wrote:
> On March 16, 2010 11:29 AM, Corinna wrote:
> > The GLibc headers OTOH definitely allow it:
> > #if (_XOPEN_SOURCE - 0) >= 700
> > ...
> That's a good trick: we can use that to get around the problem.
Indeed. But that's not the entire problem. What does
mean? GLibc maps it to
#define _POSIX_C_SOURCE 2
nd it also covers the case that _XOPEN_SOURCE is set to 500 by
setting _POSIX_C_SOURCE to 199506L (that's SUSv2 right?)
We should do the same, perhaps. WOuld you mind to prepare a patch?
Cygwin Project Co-Leader
More information about the Newlib