Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-02-12 Thread Ruslan Mahmatkhanov
Hi! David Schultz wrote on 22.01.2012 23:25: On Sat, Jan 21, 2012, Andriy Gapon wrote: It seems that python27's pyconfig.h (artificially?) limits visibility of system APIs by setting _POSIX_C_SOURCE to 200112L and _XOPEN_SOURCE to 600. This might not actually change much for earlier FreeBSD ve

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-27 Thread Tijl Coosemans
On Sunday 22 January 2012 20:25:26 David Schultz wrote: > On Sat, Jan 21, 2012, Andriy Gapon wrote: >> It seems that python27's pyconfig.h (artificially?) limits visibility of >> system >> APIs by setting _POSIX_C_SOURCE to 200112L and _XOPEN_SOURCE to 600. >> This might not actually change much f

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-26 Thread Bruce Evans
On Thu, 26 Jan 2012, David Schultz wrote: On Thu, Jan 26, 2012, David Chisnall wrote: On 26 Jan 2012, at 04:47, Eitan Adler wrote: What about patching python to only define the POSIX macros iff glibc is being used (and getting this upstreamed) ? That's a good strategy regardless. As long a

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-26 Thread David Chisnall
On 26 Jan 2012, at 14:00, David Schultz wrote: > On Thu, Jan 26, 2012, David Chisnall wrote: >> >> On 26 Jan 2012, at 04:47, Eitan Adler wrote: >>> What about patching python to only define the POSIX macros iff glibc >>> is being used (and getting this upstreamed) ? > > That's a good strategy r

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-26 Thread David Schultz
On Thu, Jan 26, 2012, David Chisnall wrote: > > On 26 Jan 2012, at 04:47, Eitan Adler wrote: > > What about patching python to only define the POSIX macros iff glibc > > is being used (and getting this upstreamed) ? That's a good strategy regardless. As long as python is doing something bogus, i

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-26 Thread Andriy Gapon
on 26/01/2012 06:47 Eitan Adler said the following: > On Wed, Jan 25, 2012 at 3:51 PM, Andriy Gapon wrote: >> on 25/01/2012 15:23 David Chisnall said the following: >>> On 22 Jan 2012, at 19:25, David Schultz wrote: Technically it's a problem with python. If you ask for a strict POSIX e

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-26 Thread David Chisnall
On 26 Jan 2012, at 04:47, Eitan Adler wrote: > On Wed, Jan 25, 2012 at 3:51 PM, Andriy Gapon wrote: >> on 25/01/2012 15:23 David Chisnall said the following: >>> On 22 Jan 2012, at 19:25, David Schultz wrote: Technically it's a problem with python. If you ask for a strict POSIX enviro

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-25 Thread Eitan Adler
On Wed, Jan 25, 2012 at 3:51 PM, Andriy Gapon wrote: > on 25/01/2012 15:23 David Chisnall said the following: >> On 22 Jan 2012, at 19:25, David Schultz wrote: >>> Technically it's a problem with python.  If you ask for a strict >>> POSIX environment (doesn't matter what version) and also #include

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-25 Thread Andriy Gapon
on 25/01/2012 15:23 David Chisnall said the following: > On 22 Jan 2012, at 19:25, David Schultz wrote: >> Technically it's a problem with python. If you ask for a strict >> POSIX environment (doesn't matter what version) and also #include >> a non-POSIX header, there's no guarantee about what you

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-25 Thread David Chisnall
On 22 Jan 2012, at 19:25, David Schultz wrote: > On Sat, Jan 21, 2012, Andriy Gapon wrote: >> >> It seems that python27's pyconfig.h (artificially?) limits visibility of >> system >> APIs by setting _POSIX_C_SOURCE to 200112L and _XOPEN_SOURCE to 600. >> This might not actually change much for e

Re: pyconfig.h and freebsd10: _POSIX_C_SOURCE and _XOPEN_SOURCE

2012-01-22 Thread David Schultz
On Sat, Jan 21, 2012, Andriy Gapon wrote: > > It seems that python27's pyconfig.h (artificially?) limits visibility of > system > APIs by setting _POSIX_C_SOURCE to 200112L and _XOPEN_SOURCE to 600. > This might not actually change much for earlier FreeBSD versions. > > But in FreeBSD 10 we now