]> granicus.if.org Git - python/commitdiff
Define _BSD_SOURCE, to get access to POSIX extensions on OpenBSD 4.1+.
authorMartin v. Löwis <martin@v.loewis.de>
Tue, 31 Jul 2007 19:54:20 +0000 (19:54 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Tue, 31 Jul 2007 19:54:20 +0000 (19:54 +0000)
Misc/NEWS
configure
configure.in
pyconfig.h.in

index f42c8ec7405a3dbc2b9e749c0ba23d97987d75f7..06450baebf21da8883919b7ce4d17ca63efc4f5c 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -101,6 +101,8 @@ Documentation
 Build
 -----
 
+- Define _BSD_SOURCE, to get access to POSIX extensions on OpenBSD 4.1+.
+
 - Patch #1673122: Use an explicit path to libtool when building a framework. 
   This avoids picking up GNU libtool from a users PATH.
 
index 70e0e684dcb076c4f28db2c585d60d479bdfa98d..fe07570927672932fdbe325f6da953611150675b 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 52844 .
+# From configure.in Revision: 54284 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.59 for python 2.5.
 #
@@ -1388,6 +1388,14 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
 
+# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
+# also defined. This can be overridden by defining _BSD_SOURCE
+
+cat >>confdefs.h <<\_ACEOF
+#define _BSD_SOURCE 1
+_ACEOF
+
+
 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
 
index 16d6ff157b5d97dae358e4ab291b5825d9f72e49..b9cda94b5a164bbfe9d7e79435deb7ac3bf5c173 100644 (file)
@@ -50,6 +50,10 @@ AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]
 # them.
 AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features])
 
+# OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
+# also defined. This can be overridden by defining _BSD_SOURCE
+AC_DEFINE(_BSD_SOURCE, 1, [Define on OpenBSD to activate all library features])
+
 # The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
 # u_int on Irix 5.3. Defining _BSD_TYPES brings it back.
 AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int])
index 844843903f16fda27d4e1e91c0c82fcf14f67fd1..44e48819c883bae3efcf7ce529aa82b703069d06 100644 (file)
 # undef _ALL_SOURCE
 #endif
 
+/* Define on OpenBSD to activate all library features */
+#undef _BSD_SOURCE
+
 /* Define on Irix to enable u_int */
 #undef _BSD_TYPES