summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-07-31 19:57:56 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-07-31 19:57:56 (GMT)
commit76760b0e8fe162b9a1c99d1dc8e17de68139d26f (patch)
tree031a84ebcab6786eea8238de965e5250e8d5812c /configure
parentf8bbaa962f95b8ebb16cd95c52de2d2c8d9261e7 (diff)
downloadcpython-76760b0e8fe162b9a1c99d1dc8e17de68139d26f.zip
cpython-76760b0e8fe162b9a1c99d1dc8e17de68139d26f.tar.gz
cpython-76760b0e8fe162b9a1c99d1dc8e17de68139d26f.tar.bz2
Define _BSD_SOURCE, to get access to POSIX extensions on OpenBSD 4.1+.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure10
1 files changed, 9 insertions, 1 deletions
diff --git a/configure b/configure
index 507b720..6212243 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 54283 .
+# From configure.in Revision: 55739 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.6.
#
@@ -1838,6 +1838,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.