diff options
-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 |