summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-12-07 22:39:33 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-12-07 22:39:33 (GMT)
commit647cd87169d79b4ab4ad084104dc152381cca339 (patch)
treec9c84926942a226ae6b3190be5cd27a84949bf4e /configure
parent35175a8f07a8d9da20587ab748446d85b615baaa (diff)
downloadcpython-647cd87169d79b4ab4ad084104dc152381cca339.zip
cpython-647cd87169d79b4ab4ad084104dc152381cca339.tar.gz
cpython-647cd87169d79b4ab4ad084104dc152381cca339.tar.bz2
Issue #19922: define _INCLUDE__STDC_A1_SOURCE in HP-UX to include mbstate_t
for mbrtowc().
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 5d666ed..6bcc4b5 100755
--- a/configure
+++ b/configure
@@ -3445,6 +3445,15 @@ $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
fi
+# On HP-UX mbstate_t requires _INCLUDE__STDC_A1_SOURCE
+case $ac_sys_system in
+hp*|HP*)
+
+$as_echo "#define _INCLUDE__STDC_A1_SOURCE 1" >>confdefs.h
+
+ ;;
+esac
+
#
# SGI compilers allow the specification of the both the ABI and the
# ISA on the command line. Depending on the values of these switches,