]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #12852: Set _XOPEN_SOURCE to 700 to get POSIX 2008
authorVictor Stinner <victor.stinner@haypocalc.com>
Wed, 7 Sep 2011 20:29:43 +0000 (22:29 +0200)
committerVictor Stinner <victor.stinner@haypocalc.com>
Wed, 7 Sep 2011 20:29:43 +0000 (22:29 +0200)
configure: Set _XOPEN_SOURCE to 700, instead of 600, to get POSIX 2008
functions on OpenBSD (e.g. fdopendir).

Misc/NEWS
configure
configure.in

index 85af2acf3e728780d4fbd7e2c01a37f51f9f71ae..730e8e0e09b4e800bee57fff93fa3ae244356185 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -1209,6 +1209,9 @@ Library
 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.
index d1436e06395c814bcbcce72841d8c2455681a8c1..51b0114da26bb06dcc48bb0ec546e171e479fe98 100755 (executable)
--- a/configure
+++ b/configure
@@ -3140,8 +3140,9 @@ esac
 
 if test $define_xopen_source = yes
 then
+  # X/Open 7, incorporating POSIX.1-2008
 
-$as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
+$as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
 
 
   # On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires
index 5b0f11e53f3d4fbb2e465eb0b404c696ae2b9dde..f9be64a9d1322dcaab01f5ca59248b99c90642a4 100644 (file)
@@ -397,7 +397,8 @@ esac
 
 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