]> granicus.if.org Git - python/commitdiff
Disable _XOPEN_SOURCE on NetBSD 1.x.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 25 Nov 2006 15:39:19 +0000 (15:39 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 25 Nov 2006 15:39:19 +0000 (15:39 +0000)
Will backport to 2.5

Misc/NEWS
configure
configure.in

index 201709288b0e041a45130f0988d2a6ff64e512ea..a0403dec0a2f18f3d76efddd7c9e41d6eb4b0b59 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -331,6 +331,8 @@ Tools/Demos
 Build
 -----
 
+- Disable _XOPEN_SOURCE on NetBSD 1.x.
+
 - configure now checks whether gcc supports the PyArg_ParseTuple format
   attribute.
 
index f31661f7df4532556c3bb14bc975e235fc61ac34..a2c80fbd0bd034fa13be1d53f74137022199b26d 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 52454 .
+# From configure.in Revision: 52456 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.6.
 #
@@ -1555,6 +1555,11 @@ case $ac_sys_system/$ac_sys_release in
   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
   OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0])
     define_xopen_source=no;;
+  # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
+  # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
+  # Marc Recht
+  NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6A-S)
+    define_xopen_source=no;;
   # On Solaris 2.6, sys/wait.h is inconsistent in the usage
   # of union __?sigval. Reported by Stuart Bishop.
   SunOS/5.6)
index 41c0eb5d9138270897180cc03bc2d037e224dbf3..1259ccfebcc3a18bf1a55c4bb1efdb70cae7165e 100644 (file)
@@ -203,6 +203,11 @@ case $ac_sys_system/$ac_sys_release in
   # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish.
   OpenBSD/2.* | OpenBSD/3.@<:@0123456789@:>@ | OpenBSD/4.@<:@0@:>@) 
     define_xopen_source=no;;
+  # Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
+  # _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
+  # Marc Recht
+  NetBSD/1.5 | NetBSD/1.5.* | NetBSD/1.6 | NetBSD/1.6.* | NetBSD/1.6[A-S])
+    define_xopen_source=no;;
   # On Solaris 2.6, sys/wait.h is inconsistent in the usage
   # of union __?sigval. Reported by Stuart Bishop.
   SunOS/5.6)