_XOPEN_SOURCE
Corinna Vinschen
corinna-cygwin@cygwin.com
Mon Mar 15 12:20:00 GMT 2010
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
More information about the Cygwin-developers
mailing list