summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2002-10-26 13:33:00 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2002-10-26 13:33:00 (GMT)
commite4826580bc8ebb37459ae689c71f8ae64e57ad05 (patch)
tree45231e593c19de359c5d15aa4b81b69d38edf13f /configure.in
parent7fbd01262cab438eb57a72bb66a46c9311aecec2 (diff)
downloadcpython-e4826580bc8ebb37459ae689c71f8ae64e57ad05.zip
cpython-e4826580bc8ebb37459ae689c71f8ae64e57ad05.tar.gz
cpython-e4826580bc8ebb37459ae689c71f8ae64e57ad05.tar.bz2
Patch #628898: Define _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 002666d..a3b726c 100644
--- a/configure.in
+++ b/configure.in
@@ -33,6 +33,13 @@ AH_VERBATIM([_XOPEN_SOURCE],
#endif])
AC_DEFINE(_XOPEN_SOURCE, 500)
+# On Tru64 Unix 4.0F, defining _XOPEN_SOURCE also requires definition
+# of _XOPEN_SOURCE_EXTENDED and _POSIX_C_SOURCE, or else several APIs
+# are not declared. Since this is also needed in some cases for HP-UX,
+# we define it globally.
+AC_DEFINE(_XOPEN_SOURCE_EXTENDED, 1, Define to activate Unix95-and-earlier features)
+AC_DEFINE(_POSIX_C_SOURCE, 199506L, Define to activate features from IEEE Stds 1003.{123}-1995)
+
# Arguments passed to configure.
AC_SUBST(CONFIG_ARGS)
CONFIG_ARGS="$ac_configure_args"