From: Jarkko Hietaniemi Date: Sat, 2 Mar 2002 17:55:48 +0000 (+0000) Subject: Demand more before attempting socketpair(). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=83ad58fb42d89656d46eea4aaba931acc1b9c87c;p=p5sagit%2Fp5-mst-13.2.git Demand more before attempting socketpair(). p4raw-id: //depot/perl@14948 --- diff --git a/pp_sys.c b/pp_sys.c index 099eab9..51afe1d 100644 --- a/pp_sys.c +++ b/pp_sys.c @@ -2285,7 +2285,7 @@ PP(pp_socket) PP(pp_sockpair) { -#if defined (HAS_SOCKETPAIR) || (defined (HAS_SOCKET) && defined(SOCK_DGRAM)) +#if defined (HAS_SOCKETPAIR) || (defined (HAS_SOCKET) && defined(SOCK_DGRAM) && defined(AF_INET) && defined(PF_INET)) dSP; GV *gv1; GV *gv2;