develooper Front page | perl.perl5.porters | Postings from April 2007

[PATCH] g++ in Tru64: align sockaddr and sockaddr_in defs

Thread Next
From:
Jarkko Hietaniemi
Date:
April 11, 2007 19:20
Subject:
[PATCH] g++ in Tru64: align sockaddr and sockaddr_in defs
Message ID:
200704120219.l3C2JUGZ294947@kosh.hut.fi
--- hints/dec_osf.sh.dist	2007-04-12 05:12:54.000000000 +0300
+++ hints/dec_osf.sh	2007-04-12 05:13:16.000000000 +0300
@@ -167,9 +167,10 @@
 # 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:

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About