summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-04-12 08:19:30 +0300
committerH.Merijn Brand <h.m.brand@xs4all.nl>2007-04-12 06:15:36 +0000
commitee34af25fd0d43d821b583560e4abf3a14edc5d1 (patch)
tree060b63b7b3b0462f11d220f24fbb5683e7074f31 /hints
parentfc4809d700f2d81f10c2f880a711ccb8f5f82094 (diff)
downloadperl-ee34af25fd0d43d821b583560e4abf3a14edc5d1.tar.gz
g++ in Tru64: align sockaddr and sockaddr_in defs
Message-Id: <200704120219.l3C2JUGZ294947@kosh.hut.fi> p4raw-id: //depot/perl@30918
Diffstat (limited to 'hints')
-rw-r--r--hints/dec_osf.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh
index cf557eabac..0b4723caa0 100644
--- a/hints/dec_osf.sh
+++ b/hints/dec_osf.sh
@@ -167,9 +167,10 @@ ccflags="$ccflags $_ccflags_strict_ansi"
# its moral equivalent, _XOPEN_SOURCE=500 (which would
# define a lot of the required prototypes for us), because
# the gcc-processed version of <sys/wait.h> contains fatally
-# conflicting prototypes for wait3().
+# conflicting prototypes for wait3(). The _SOCKADDR_LEN is
+# needed to get struct sockaddr and struct sockaddr_in to align.
case "$cc" in
-*g++*) ccflags="$ccflags -D_XOPEN_SOURCE -D_OSF_SOURCE -D_AES_SOURCE -D_BSD -D_POSIX_C_SOURCE=199309L -D_POSIX_PII_SOCKET" ;;
+*g++*) ccflags="$ccflags -D_XOPEN_SOURCE -D_OSF_SOURCE -D_AES_SOURCE -D_BSD -D_POSIX_C_SOURCE=199309L -D_POSIX_PII_SOCKET -D_SOCKADDR_LEN" ;;
esac
# for gcc the Configure knows about the -fpic: