Author vstinner
Recipients neologix, rosslagerwall, rpointel, vstinner
Date 2011-08-30.08:08:23
SpamBayes Score 3.89053e-07
Marked as misclassified No
Message-id <>
In-reply-to <>
>> I tried "AC_DEFINE(_POSIX_C_SOURCE, 200809L, Define to activate features from IEEE Stds 1003.1-2008)" but it doesn't work.
> You mean that the patch you attached doesn't work, correct?

I ran autoconf, re-ran configure and it doesn't work. You can test 
without touching edit pyconfig.h directly.

On Linux, all "features" flags are defined/undefined in 
/usr/include/features.h. Depending on _POSIX_C_SOURCE, _XOPEN_SOURCE, 
_BSD_SOURCE, ..., you get a different POSIX level.

For example:

/* If _GNU_SOURCE was defined by the user, turn on all the other 
features.  */
#ifdef _GNU_SOURCE
# undef  _ISOC99_SOURCE
# define _ISOC99_SOURCE	1
# undef  _POSIX_SOURCE
# define _POSIX_SOURCE	1
# undef  _POSIX_C_SOURCE
# define _POSIX_C_SOURCE	200809L
# undef  _XOPEN_SOURCE
# define _XOPEN_SOURCE	700
# ...

I suppose that there is a conflict between Python's _POSIX_C_SOURCE and 
other defines related to the POSIX level.
Date User Action Args
2011-08-30 08:08:24vstinnersetrecipients: + vstinner, neologix, rosslagerwall, rpointel
2011-08-30 08:08:24vstinnerlinkissue12852 messages
2011-08-30 08:08:23vstinnercreate