]> granicus.if.org Git - python/commitdiff
Patch #730826: Enable extensions on NetBSD 2.0.
authorMartin v. Löwis <martin@v.loewis.de>
Sat, 3 May 2003 10:32:18 +0000 (10:32 +0000)
committerMartin v. Löwis <martin@v.loewis.de>
Sat, 3 May 2003 10:32:18 +0000 (10:32 +0000)
configure
configure.in
pyconfig.h.in

index d47a098ef898024f7387c6c10118d361e16199f4..13303e36cc0b4837bc2c28cb820a28e37bad3842 100755 (executable)
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
 #! /bin/sh
-# From configure.in Revision: 1.401 .
+# From configure.in Revision: 1.402 .
 # Guess values for system-dependent variables and create Makefiles.
 # Generated by GNU Autoconf 2.53 for python 2.3.
 #
@@ -1252,6 +1252,15 @@ cat >>confdefs.h <<\_ACEOF
 _ACEOF
 
 
+# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
+# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
+# them.
+
+cat >>confdefs.h <<\_ACEOF
+#define _NETBSD_SOURCE 1
+_ACEOF
+
+
 define_xopen_source=yes
 
 # Arguments passed to configure.
index 765e8bf94a5fecdb56e6dc120867d54835f13698..f49561718301128b61c6ef2f983cb215f0a4c899 100644 (file)
@@ -34,6 +34,11 @@ SOVERSION=1.0
 # on Linux, so we need _GNU_SOURCE to re-enable them (makedev, tm_zone).
 AC_DEFINE(_GNU_SOURCE, 1, [Define on Linux to activate all library features])
 
+# The later defininition of _XOPEN_SOURCE and _POSIX_C_SOURCE disables
+# certain features on NetBSD, so we need _NETBSD_SOURCE to re-enable
+# them.
+AC_DEFINE(_NETBSD_SOURCE, 1, [Define on NetBSD to activate all library features])
+
 define_xopen_source=yes
 
 # Arguments passed to configure.
index 93ef15146d326f320e08c558f264fb666a0a3fb2..705976d6d816f4ca59a887881e5064f42f9162e3 100644 (file)
 /* Define to 1 if on MINIX. */
 #undef _MINIX
 
+/* Define on NetBSD to activate all library features */
+#undef _NETBSD_SOURCE
+
 /* Define _OSF_SOURCE to get the makedev macro. */
 #undef _OSF_SOURCE