summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2002-07-18 22:39:34 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2002-07-18 22:39:34 (GMT)
commit5a7ef7e2b56639073759d9b8a33a6c59fb8e4498 (patch)
tree1d7d7cdaf63f509ac00bf50a7935557fb9b2398c /configure
parenta12b4cfaa5459cf45d64b7f882f8968de3d876a8 (diff)
downloadcpython-5a7ef7e2b56639073759d9b8a33a6c59fb8e4498.zip
cpython-5a7ef7e2b56639073759d9b8a33a6c59fb8e4498.tar.gz
cpython-5a7ef7e2b56639073759d9b8a33a6c59fb8e4498.tar.bz2
Define _XOPEN_SOURCE in configure and Python.h.
This gets compilation of posixmodule.c to succeed on Tru64 and does no harm on Linux. We may need to undefine it on some platforms, but let's wait and see. Martin says: > I think it is generally the right thing to define _XOPEN_SOURCE on > Unix, providing a negative list of systems that cannot support this > setting (or preferably solving whatever problems remain). > > I'd put an (unconditional) AC_DEFINE into configure.in early on; it > *should* go into confdefs.h as configure proceeds, and thus be active > when other tests are performed.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure7
1 files changed, 6 insertions, 1 deletions
diff --git a/configure b/configure
index 2696de1..1641fd1 100755
--- a/configure
+++ b/configure
@@ -1,5 +1,5 @@
#! /bin/sh
-# From configure.in Revision: 1.329 .
+# From configure.in Revision: 1.330 .
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
#
@@ -1225,6 +1225,11 @@ VERSION=2.3
SOVERSION=1.0
+cat >>confdefs.h <<\_ACEOF
+#define _XOPEN_SOURCE 500
+_ACEOF
+
+
# Arguments passed to configure.
CONFIG_ARGS="$ac_configure_args"