Lines 1-58
Link Here
|
1 |
# Description: do not define __BSD_VISIBLE/_XOPEN_SOURCE/_POSIX_C_SOURCE |
|
|
2 |
# in include/python2.7/pyconfig.h |
3 |
# Submitted by: antoine |
4 |
|
5 |
--- configure.orig 2014-09-06 14:42:50 UTC |
6 |
+++ configure |
7 |
@@ -2919,13 +2919,6 @@ |
8 |
|
9 |
|
10 |
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
11 |
-# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
12 |
-# them. |
13 |
- |
14 |
-$as_echo "#define __BSD_VISIBLE 1" >>confdefs.h |
15 |
- |
16 |
- |
17 |
-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
18 |
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
19 |
|
20 |
$as_echo "#define _BSD_TYPES 1" >>confdefs.h |
21 |
@@ -3293,9 +3286,8 @@ |
22 |
# but used in struct sockaddr.sa_family. Reported by Tim Rice. |
23 |
SCO_SV/3.2) |
24 |
define_xopen_source=no;; |
25 |
- # On FreeBSD 4, the math functions C89 does not cover are never defined |
26 |
- # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
27 |
- FreeBSD/4.*) |
28 |
+ # On FreeBSD, defining _XOPEN_SOURCE to 600 requests a strict environment. |
29 |
+ FreeBSD/*) |
30 |
define_xopen_source=no;; |
31 |
# On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
32 |
# _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |
33 |
--- configure.ac.orig 2014-09-06 14:42:50 UTC |
34 |
+++ configure.ac |
35 |
@@ -88,11 +88,6 @@ |
36 |
AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features]) |
37 |
|
38 |
# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
39 |
-# certain features on FreeBSD, so we need __BSD_VISIBLE to re-enable |
40 |
-# them. |
41 |
-AC_DEFINE(__BSD_VISIBLE, 1, [Define on FreeBSD to activate all library features]) |
42 |
- |
43 |
-# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables |
44 |
# u_int on Irix 5.3. Defining _BSD_TYPES brings it back. |
45 |
AC_DEFINE(_BSD_TYPES, 1, [Define on Irix to enable u_int]) |
46 |
|
47 |
@@ -426,9 +421,8 @@ |
48 |
# but used in struct sockaddr.sa_family. Reported by Tim Rice. |
49 |
SCO_SV/3.2) |
50 |
define_xopen_source=no;; |
51 |
- # On FreeBSD 4, the math functions C89 does not cover are never defined |
52 |
- # with _XOPEN_SOURCE and __BSD_VISIBLE does not re-enable them. |
53 |
- FreeBSD/4.*) |
54 |
+ # On FreeBSD, defining _XOPEN_SOURCE to 600 requests a strict environment. |
55 |
+ FreeBSD/*) |
56 |
define_xopen_source=no;; |
57 |
# On MacOS X 10.2, a bug in ncurses.h means that it craps out if |
58 |
# _XOPEN_EXTENDED_SOURCE is defined. Apparently, this is fixed in 10.3, which |