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

Fredrik Lundh fredrik@pythonware.com
Tue, 4 Jul 2000 16:22:34 +0200

mal wrote:

> > looks like a bug in the header files; SUSv2 says that
> > this should be defined in stdio.h...
> The header files on my machine only define tmpnam_r in
> case __USE_MISC is true. The latter is defined for either
> BSD or SysV compatibility, yet not by _XOPEN_SOURCE.

oh, sorry.  looks like I was off by two here, and thought
you were talking about tmpnam.

fwiw, SUSv2 seems to say that tmpnam is thread safe, if
used in the right way.  there is no tmpnam_r in SUSv2.

I'll dig into this later (maybe they've added things in SUSv3).

> > > ./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.
> I guess we should patch signalmodule.c to fall back to _NSIG
> instead of trying SIGMAX.

sounds reasonable (or rather, I haven't got a clue, so I'll
have to trust you on this one ;-)

cheers /F