[Python-checkins] cpython: Issue #12852: Set _XOPEN_SOURCE to 700 to get POSIX 2008
victor.stinner
python-checkins at python.org
Wed Sep 7 22:30:35 CEST 2011
http://hg.python.org/cpython/rev/cf66578d03d1
changeset: 72313:cf66578d03d1
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Wed Sep 07 22:29:43 2011 +0200
summary:
Issue #12852: Set _XOPEN_SOURCE to 700 to get POSIX 2008
configure: Set _XOPEN_SOURCE to 700, instead of 600, to get POSIX 2008
functions on OpenBSD (e.g. fdopendir).
files:
Misc/NEWS | 3 +++
configure | 5 +++--
configure.in | 3 ++-
3 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1209,6 +1209,9 @@
Build
-----
+- Issue #12852: Set _XOPEN_SOURCE to 700, instead of 600, to get POSIX 2008
+ functions on OpenBSD (e.g. fdopendir).
+
- Issue #11863: Remove support for legacy systems deprecated in Python 3.2
(following PEP 11). These systems are systems using Mach C Threads,
SunOS lightweight processes, GNU pth threads and IRIX threads.
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -3140,8 +3140,9 @@
if test $define_xopen_source = yes
then
-
-$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
+ # X/Open 7, incorporating POSIX.1-2008
+
+$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -397,7 +397,8 @@
if test $define_xopen_source = yes
then
- AC_DEFINE(_XOPEN_SOURCE, 600,
+ # X/Open 7, incorporating POSIX.1-2008
+ AC_DEFINE(_XOPEN_SOURCE, 700,
Define to the level of X/Open that your system supports)
# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list