Re: Snake farm

Marc Recht <[email protected]> 10 Nov 2002 22:10:57 +0100
Newsgroups gmane.comp.python.devel,gmane.comp.python.snake-farm.user
Message-ID <[email protected]>
> > (patch attached). But the cleanest way would be to not define
> > _XOPEN_SOURCE, XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE on FreeBSD 5.
> 
> Notice that issues are different on the various BSDs.
I know. And if there are issues they should be resolved for each BSD.

> I think of Python on Unix as "POSIX+Extensions". On all POSIX systems,
> _XOPEN_SOURCE should be defined. If additional defines are needed to
> activate extensions, we should define them.
The clean way on FreeBSD is then _not_ to define the above defines. We
then get everything we want. 
If you define _POSIX_C_SOURCE you get _POSIX_C_SOURCE. Not more, not
less..

> If FreeBSD has no mechanisms to request extensions other than defining
> __BSD_VISIBLE, we should define it. Before doing so, I'd like to know
> what Python features would need that.
Setting __BSD_VISIBLE is rather a hack and shouldn't be done..
Please have a look at the patch, which I submitted on SourceForge. (It's somewhat like 
Hye-Shik Chang patch.)

> Please don't post patches to python-dev.
Sorry..

Marc

-- 
"Premature optimization is the root of all evil." -- Donald E. Knuth
signature.asc (application/pgp-signature, 187 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQA9zsth7YQCetAaG3MRArcVAJ40R4tStYSd0pG7TPUTo1tIN+v7AQCeK/W4
A/H8KnoBTjVCNZ1DjJf03c8=
=C+M4
-----END PGP SIGNATURE-----