Change 33262 by [EMAIL PROTECTED] on 2008/02/09 01:17:27

        Subject: [PATCH] hints/aix_4.sh to allow build on aix 4.2
        From: AUGUSTE-ETIENNE Jose <[EMAIL PROTECTED]>
        Date: Fri, 08 Feb 2008 17:10:26 -0300
        Message-Id: <[EMAIL PROTECTED]>

Affected files ...

... //depot/perl/hints/aix_4.sh#7 edit

Differences ...

==== //depot/perl/hints/aix_4.sh#7 (xtext) ====
Index: perl/hints/aix_4.sh
--- perl/hints/aix_4.sh#6~29777~        2007-01-12 07:15:13.000000000 -0800
+++ perl/hints/aix_4.sh 2008-02-08 17:17:27.000000000 -0800
@@ -113,6 +113,15 @@
     *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.
End of Patch.

Reply via email to