From: AUGUSTE-ETIENNE Jose Date: Fri, 8 Feb 2008 17:10:26 +0000 (-0300) Subject: hints/aix_4.sh to allow build on aix 4.2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=28c7948a097f6a8d750d5e835eabe8a13fd103e2;p=p5sagit%2Fp5-mst-13.2.git 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 --- diff --git a/hints/aix_4.sh b/hints/aix_4.sh index 46e8d25..80f309f 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.