[Python-Dev] Make _GNU_SOURCE default for gcc ?!

Fredrik Lundh fredrik@pythonware.com
Tue, 4 Jul 2000 14:40:09 +0200


mal wrote:
> Hmm, with "#define _XOPEN_SOURCE 500" I get these (new) errors:
>
> ./posixmodule.c: In function `posix_tmpnam':
> ./posixmodule.c:3494: warning: assignment makes pointer from integer
without a cast

looks like a bug in the header files; SUSv2 says that
this should be defined in stdio.h...

> ./signalmodule.c:83: `SIGMAX' undeclared here (not in a function)
> ./signalmodule.c:83: size of array `Handlers' has non-integer type

but this one is stranger; as far as I can tell, SIGMAX is not
part of SUSv2 at all.  and what's worse, I cannot find any
suitable replacement.

does it work better if you just define _XOPEN_SOURCE, without any
specific value?  or maybe you should just add _GNU_SOURCE to make
it work on your box.  I promise to play with this on our Unix boxes,
but not today...

</F>