diff options
author | AUGUSTE-ETIENNE Jose <jose.auguste-etienne@cgss-guyane.fr> | 2008-02-08 14:10:26 -0300 |
---|---|---|
committer | Steve Peters <steve@fisharerojo.org> | 2008-02-09 01:17:27 +0000 |
commit | 28c7948a097f6a8d750d5e835eabe8a13fd103e2 (patch) | |
tree | b385defdee6edc73ef4e55f99d14e640a79b586e | |
parent | f8a4dbc572aee3db3959c5d7f46910e19960b963 (diff) | |
download | perl-28c7948a097f6a8d750d5e835eabe8a13fd103e2.tar.gz |
hints/aix_4.sh to allow build on aix 4.2
Message-Id: <1202501426.15175.10.camel@sinf009w.d81970300.cgss-guyane.fr>
p4raw-id: //depot/perl@33262
-rwxr-xr-x | hints/aix_4.sh | 9 |
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. |