summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2010-02-15 08:37:47 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2010-02-15 08:37:47 (GMT)
commitf6594224e22e06cd7106718ffbc21b86992c32f5 (patch)
tree8af2d39bd8dc1016d1c2cfdbdb6c31545e254687 /configure.in
parent57a432d95e19837a62c27a0a9faf72cb3166e760 (diff)
downloadcpython-f6594224e22e06cd7106718ffbc21b86992c32f5.zip
cpython-f6594224e22e06cd7106718ffbc21b86992c32f5.tar.gz
cpython-f6594224e22e06cd7106718ffbc21b86992c32f5.tar.bz2
Merged revisions 78196 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78196 | martin.v.loewis | 2010-02-15 09:35:16 +0100 (Mo, 15 Feb 2010) | 9 lines Merged revisions 78194 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r78194 | martin.v.loewis | 2010-02-15 09:32:00 +0100 (Mo, 15 Feb 2010) | 2 lines 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 0022d02..3d3d4a1 100644
--- a/configure.in
+++ b/configure.in
@@ -283,6 +283,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