From: Steve Peters Date: Mon, 30 Jan 2006 13:25:04 +0000 (+0000) Subject: Add -DPTR_IS_LONG when building with -Duse64bitint on Solaris/i386. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=25909821eb3e0c6b8049a206da47b68b90d7e46a;p=p5sagit%2Fp5-mst-13.2.git Add -DPTR_IS_LONG when building with -Duse64bitint on Solaris/i386. Otherwise, the build fails in POSIX. p4raw-id: //depot/perl@27001 --- diff --git a/hints/solaris_2.sh b/hints/solaris_2.sh index a06d9e8..143b130 100644 --- a/hints/solaris_2.sh +++ b/hints/solaris_2.sh @@ -463,6 +463,14 @@ case "$usemorebits" in ;; esac +if test `uname -p` = i386; then + case "$use64bitint" in + "$define"|true|[yY]*) + ccflags="$ccflags -DPTR_IS_LONG" + ;; + esac +fi + if test `uname -p` = sparc -o `uname -p` = i386; then cat > UU/use64bitint.cbu <<'EOCBU' # This script UU/use64bitint.cbu will get 'called-back' by Configure