From bcd93962ce27d969ff9a186e8e679c2a57620799 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20v=2E=20L=C3=B6wis?= Date: Sat, 3 May 2003 10:32:18 +0000 Subject: Patch #730826: Enable extensions on NetBSD 2.0. --- configure | 11 ++++++++++- configure.in | 5 +++++ pyconfig.h.in | 3 +++ 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/configure b/configure index d47a098..13303e3 100755 --- 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. diff --git a/configure.in b/configure.in index 765e8bf..f495617 100644 --- a/configure.in +++ b/configure.in @@ -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. diff --git a/pyconfig.h.in b/pyconfig.h.in index 93ef151..705976d 100644 --- a/pyconfig.h.in +++ b/pyconfig.h.in @@ -817,6 +817,9 @@ /* 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 -- cgit v0.12