summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-02-15 08:32:00 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2010-02-15 08:32:00 (GMT)
commit5e2dd866a8acc2e359c007e752cb0d06d3cac664 (patch)
tree707fed98cbd6340edfca9a166e8a5148a3b62384
parentd5fdc069faeb7efc57584abe96010aba82cc83c8 (diff)
downloadcpython-5e2dd866a8acc2e359c007e752cb0d06d3cac664.zip
cpython-5e2dd866a8acc2e359c007e752cb0d06d3cac664.tar.gz
cpython-5e2dd866a8acc2e359c007e752cb0d06d3cac664.tar.bz2
Issue #3920: Define _BSD_SOURCE on OpenBSD 4.4.
-rw-r--r--Misc/NEWS5
-rwxr-xr-xconfigure42
-rw-r--r--configure.in6
3 files changed, 37 insertions, 16 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 0d86fe7..86383e2 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -34,6 +34,11 @@ Tests
The original CWD is saved in `test_support.SAVEDCWD`.
Thanks to Florent Xicluna who helped with the patch.
+Build
+-----
+
+- Issue #3920: Define _BSD_SOURCE on OpenBSD 4.4.
+
What's New in Python 2.7 alpha 3?
=================================
diff --git a/configure b/configure
index 7f99de8..72be336 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 78150 .
+# From configure.in Revision: 78154 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.61 for python 2.7.
#
@@ -2132,6 +2132,16 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
;;
+ OpenBSD/4.[4])
+ # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
+ # also defined. This can be overridden by defining _BSD_SOURCE
+ # As this has a different meaning on Linux, only define it on OpenBSD
+
+cat >>confdefs.h <<\_ACEOF
+#define _BSD_SOURCE 1
+_ACEOF
+
+ ;;
# Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
# _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
# Marc Recht
@@ -3884,7 +3894,7 @@ else
{ echo "$as_me:$LINENO: result: no" >&5
echo "${ECHO_T}no" >&6; }
fi
-rm -f -r conftest*
+rm -f conftest*
@@ -5488,7 +5498,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
else
ac_cv_header_stdc=no
fi
-rm -f -r conftest*
+rm -f conftest*
fi
@@ -5509,7 +5519,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
else
ac_cv_header_stdc=no
fi
-rm -f -r conftest*
+rm -f conftest*
fi
@@ -6609,7 +6619,7 @@ _ACEOF
fi
-rm -f -r conftest*
+rm -f conftest*
{ echo "$as_me:$LINENO: result: $was_it_defined" >&5
echo "${ECHO_T}$was_it_defined" >&6; }
@@ -7139,7 +7149,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
else
ac_cv_type_uid_t=no
fi
-rm -f -r conftest*
+rm -f conftest*
fi
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
@@ -15926,7 +15936,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
else
unistd_defines_pthreads=no
fi
-rm -f -r conftest*
+rm -f conftest*
{ echo "$as_me:$LINENO: result: $unistd_defines_pthreads" >&5
echo "${ECHO_T}$unistd_defines_pthreads" >&6; }
@@ -17540,7 +17550,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
$EGREP "yes" >/dev/null 2>&1; then
ipv6type=$i
fi
-rm -f -r conftest*
+rm -f conftest*
;;
kame)
@@ -17563,7 +17573,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ipv6libdir=/usr/local/v6/lib
ipv6trylibc=yes
fi
-rm -f -r conftest*
+rm -f conftest*
;;
linux-glibc)
@@ -17584,7 +17594,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ipv6type=$i;
ipv6trylibc=yes
fi
-rm -f -r conftest*
+rm -f conftest*
;;
linux-inet6)
@@ -17622,7 +17632,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib
fi
-rm -f -r conftest*
+rm -f conftest*
;;
v6d)
@@ -17645,7 +17655,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ipv6libdir=/usr/local/v6/lib;
BASECFLAGS="-I/usr/local/v6/include $BASECFLAGS"
fi
-rm -f -r conftest*
+rm -f conftest*
;;
zeta)
@@ -17667,7 +17677,7 @@ if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
ipv6lib=inet6;
ipv6libdir=/usr/local/v6/lib
fi
-rm -f -r conftest*
+rm -f conftest*
;;
esac
@@ -26210,7 +26220,7 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
-rm -f -r conftest*
+rm -f conftest*
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
@@ -26229,7 +26239,7 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
-rm -f -r conftest*
+rm -f conftest*
fi
@@ -26499,7 +26509,7 @@ cat >>confdefs.h <<\_ACEOF
_ACEOF
fi
-rm -f -r conftest*
+rm -f conftest*
fi
diff --git a/configure.in b/configure.in
index 84a6d9c..14e6280 100644
--- a/configure.in
+++ b/configure.in
@@ -292,6 +292,12 @@ case $ac_sys_system/$ac_sys_release in
# As this has a different meaning on Linux, only define it on OpenBSD
AC_DEFINE(_BSD_SOURCE, 1, [Define on OpenBSD to activate all library features])
;;
+ OpenBSD/4.@<:@4@:>@)
+ # OpenBSD undoes our definition of __BSD_VISIBLE if _XOPEN_SOURCE is
+ # also defined. This can be overridden by defining _BSD_SOURCE
+ # As this has a different meaning on Linux, only define it on OpenBSD
+ AC_DEFINE(_BSD_SOURCE, 1, [Define on OpenBSD to activate all library features])
+ ;;
# Defining _XOPEN_SOURCE on NetBSD version prior to the introduction of
# _NETBSD_SOURCE disables certain features (eg. setgroups). Reported by
# Marc Recht