Corinna Vinschen
Tue Mar 16 16:03:00 GMT 2010

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

  #define _XOPEN_SOURCE

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?


Corinna Vinschen
Cygwin Project Co-Leader
Red Hat

More information about the Newlib mailing list