summaryrefslogtreecommitdiffstats
path: root/configure.in
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 /configure.in
parentd5fdc069faeb7efc57584abe96010aba82cc83c8 (diff)
downloadcpython-5e2dd866a8acc2e359c007e752cb0d06d3cac664.zip
cpython-5e2dd866a8acc2e359c007e752cb0d06d3cac664.tar.gz
cpython-5e2dd866a8acc2e359c007e752cb0d06d3cac664.tar.bz2
Issue #3920: Define _BSD_SOURCE on OpenBSD 4.4.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 6 insertions, 0 deletions
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