This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
Re: _XOPEN_SOURCE
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin-developers at cygwin dot com
- Date: Mon, 15 Mar 2010 13:20:43 +0100
- Subject: Re: _XOPEN_SOURCE
- References: <810385.23956.qm@web25502.mail.ukl.yahoo.com>
- Reply-to: cygwin-developers at cygwin dot com
On Mar 15 11:34, Marco Atzeri wrote:
> Dear Corinna,
>
> on /usr/include/sys/features.h
> -------------------------------------------------------
> #if !defined(_POSIX_C_SOURCE) && defined(_XOPEN_SOURCE)
> #if _XOPEN_SOURCE == 700 /* POSIX.1-2008 */
> #define _POSIX_C_SOURCE 200809L
> #elif _XOPEN_SOURCE == 600 /* POSIX.1-2001 */
> #define _POSIX_C_SOURCE 200112L
> #endif
> #endif
> -------------------------------------------------------
>
> the test expect that _XOPEN_SOURCE, when defined, has some
> values.
>
> However it seems that it could also be defined and empty:
> http://docs.sun.com/app/docs/doc/816-5175/6mbba7f3p?a=view
>
> in this case the compilation will fail with :
> /usr/include/sys/features.h:189:21: error: operator '==' has no left operand
> /usr/include/sys/features.h:191:24: error: operator '==' has no left operand
This is newlib fodder. It's quite a new change, too, and the guy who
did the change only reads the newlib list, not any of the Cygwin lists.
So, would you mind to discuss this on the newlib list, Marco? An
example of an actual package which fails to build now would be helpful,
too.
Thanks,
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat