summaryrefslogtreecommitdiff
path: root/pp_sys.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-02 17:55:48 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-02 17:55:48 +0000
commit83ad58fb42d89656d46eea4aaba931acc1b9c87c (patch)
treeff39ab59d5f0813e8eded42ea65642c0602bb24c /pp_sys.c
parentcbc75e7d005543c5c3f4fde0b82b904c408de72c (diff)
downloadperl-83ad58fb42d89656d46eea4aaba931acc1b9c87c.tar.gz
Demand more before attempting socketpair().
p4raw-id: //depot/perl@14948
Diffstat (limited to 'pp_sys.c')
-rw-r--r--pp_sys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_sys.c b/pp_sys.c
index 099eab9063..51afe1d6c9 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;