[Patches] Fix compiler warning on Linux
Fredrik Lundh
Fredrik Lundh" <effbot@telia.com
Tue, 30 May 2000 11:12:39 +0200
M.-A. Lemburg wrote:> > umm. according to my copy of features.h, =
__USE_XOPEN is an
> > *internal* GNU-specific thingie. any reason you cannot do this
> > in a portable way, and use
> >=20
> > #define _XOPEN_SOURCE
> >=20
> > instead, just as the unix specifications say?
> >=20
> > (see GNU's features.h for a discussion of environment defines)
>=20
> Doesn't defining _GNU_SOURCE fix the above too ?
if you have a GNU compiler, sure.
but _XOPEN_SOURCE is a vendor-independent standard
(http://www.unix-systems.org).
maybe Python should set this variable on a system-wide
level? after all, if the source code assumes X/Open API's,
explicitly saying so cannot really hurt...
/* force susv2 compatibility, where available */
#define _XOPEN_SOURCE 500
</F>