OS/390 seems to do length 0 udp reads, Nicholas says
[p5sagit/p5-mst-13.2.git] / pp_sys.c
index f8764c7..3fb4be9 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -2282,7 +2282,7 @@ PP(pp_socket)
 
 PP(pp_sockpair)
 {
-#if defined (HAS_SOCKETPAIR) || defined (HAS_SOCKET)
+#if defined (HAS_SOCKETPAIR) || (defined (HAS_SOCKET) && defined(SOCK_DGRAM))
     dSP;
     GV *gv1;
     GV *gv2;