diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-12-29 18:49:21 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-12-29 18:49:21 (GMT) |
commit | cb78de6d25591363e26610e168ec48e3e63757b0 (patch) | |
tree | a53d7ba67894c6cb37885fa4237bf4c7619a0955 /configure | |
parent | b19be571e09263239ef29c92eee06dbb30186685 (diff) | |
download | cpython-cb78de6d25591363e26610e168ec48e3e63757b0.zip cpython-cb78de6d25591363e26610e168ec48e3e63757b0.tar.gz cpython-cb78de6d25591363e26610e168ec48e3e63757b0.tar.bz2 |
Bug #1699: Define _BSD_SOURCE only on OpenBSD.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 21 |
1 files changed, 11 insertions, 10 deletions
@@ -1,5 +1,5 @@ #! /bin/sh -# From configure.in Revision: 59533 . +# From configure.in Revision: 59558 . # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.61 for python 2.6. # @@ -1838,14 +1838,6 @@ 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. @@ -2012,7 +2004,16 @@ case $ac_sys_system/$ac_sys_release in # even though select is a POSIX function. Reported by J. Ribbens. # Reconfirmed for OpenBSD 3.3 by Zachary Hamm, for 3.4 by Jason Ish. OpenBSD/2.* | OpenBSD/3.[0123456789] | OpenBSD/4.[0]) - define_xopen_source=no;; + define_xopen_source=no + # 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 |