summaryrefslogtreecommitdiff
path: root/hints/aix_4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'hints/aix_4.sh')
-rwxr-xr-xhints/aix_4.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/hints/aix_4.sh b/hints/aix_4.sh
index 46e8d25ffd..80f309f3fd 100755
--- a/hints/aix_4.sh
+++ b/hints/aix_4.sh
@@ -113,6 +113,15 @@ case "$cc" in
*gcc*) ;;
*) ccflags="$ccflags -qmaxmem=-1 -qnoansialias" ;;
esac
+
+# since change #28654, _XOPEN_SOURCE symbol needs to be defined on aix 4.2
+# to avoid the following build error in perlio.c :
+# 1506-294 (S) Syntax error in expression on #if directive.
+#
+case "$osvers" in
+ 4.2.1.0) ccflags="$ccflags -D_XOPEN_SOURCE" ;;
+ *) ;;
+ esac
nm_opt='-B'
# These functions don't work like Perl expects them to.