diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2006-08-10 12:00:44 +0300 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-08-10 08:23:31 +0000 |
commit | 1d0eb99ac8ec0dfd859e9def067c632124d58343 (patch) | |
tree | 3b6a7e76c2e3c98243995b6f9331a9b2f8521ba1 | |
parent | 7c0dd7caddd4c6aa0c561002ae25414a8910234e (diff) | |
download | perl-1d0eb99ac8ec0dfd859e9def067c632124d58343.tar.gz |
g++: gethostbyaddr, and more Tru64 defines
Message-ID: <44DACB8C.1080708@iki.fi>
p4raw-id: //depot/perl@28689
-rw-r--r-- | hints/dec_osf.sh | 5 | ||||
-rw-r--r-- | pp_sys.c | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/hints/dec_osf.sh b/hints/dec_osf.sh index 92cb1c3030..c0f2bfc2d8 100644 --- a/hints/dec_osf.sh +++ b/hints/dec_osf.sh @@ -161,9 +161,10 @@ esac # Be nauseatingly ANSI ccflags="$ccflags $_ccflags_strict_ansi" -# g++ needs -D_XOPEN_SOURCE -D_OSF_SOURCE -D_AES_SOURCE -D_BSD to get much use of <unistd.h>. +# g++ needs a lot of definitions to see the same set of +# prototypes from <unistd.h> et alia as cxx/cc see. case "$cc" in -*g++*) ccflags="$ccflags -D_XOPEN_SOURCE -D_OSF_SOURCE -D_AES_SOURCE -D_BSD" ;; +*g++*) ccflags="$ccflags -D_XOPEN_SOURCE -D_OSF_SOURCE -D_AES_SOURCE -D_BSD -D_POSIX_C_SOURCE=199309L -D_POSIX_PII_SOCKET" ;; esac # for gcc the Configure knows about the -fpic: @@ -4651,7 +4651,7 @@ PP(pp_ghostent) STRLEN addrlen; Netdb_host_t addr = (Netdb_host_t) SvPVbyte(addrsv, addrlen); - hent = PerlSock_gethostbyaddr((const void*)addr, (Netdb_hlen_t) addrlen, addrtype); + hent = PerlSock_gethostbyaddr((const char*)addr, (Netdb_hlen_t) addrlen, addrtype); #else DIE(aTHX_ PL_no_sock_func, "gethostbyaddr"); #endif |