Add -DPTR_IS_LONG when building with -Duse64bitint on Solaris/i386.
authorSteve Peters <steve@fisharerojo.org>
Mon, 30 Jan 2006 13:25:04 +0000 (13:25 +0000)
committerSteve Peters <steve@fisharerojo.org>
Mon, 30 Jan 2006 13:25:04 +0000 (13:25 +0000)
Otherwise, the build fails in POSIX.

p4raw-id: //depot/perl@27001

hints/solaris_2.sh

index a06d9e8..143b130 100644 (file)
@@ -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