4-arg select() was busted on windows because change#8178 didn't
Gurusamy Sarathy [Sun, 5 Aug 2001 21:35:50 +0000 (21:35 +0000)]
make it into mainline

p4raw-link: @8178 on //depot/maint-5.6/perl: 961154a63c3a7b345be8bfbe688f4d089c92e684

p4raw-id: //depot/perl@11589

perl.h
win32/include/sys/socket.h

diff --git a/perl.h b/perl.h
index 3c7304f..b85b88f 100644 (file)
--- a/perl.h
+++ b/perl.h
@@ -752,7 +752,7 @@ typedef struct perl_mstats perl_mstats_t;
 #  define _SOCKADDR_LEN
 #endif
 
-#if defined(HAS_SOCKET) && !defined(VMS) /* VMS handles sockets via vmsish.h */
+#if defined(HAS_SOCKET) && !defined(VMS) && !defined(WIN32) /* VMS/WIN32 handle sockets via vmsish.h/win32.h */
 # include <sys/socket.h>
 # if defined(USE_SOCKS) && defined(I_SOCKS)
 #   if !defined(INCLUDE_PROTOTYPES)
index e83fd2b..d1f1de6 100644 (file)
@@ -17,6 +17,8 @@ extern "C" {
 #include <windows.h>
 #include <winsock.h>
 
+#include "win32.h"
+
 #define  ENOTSOCK      WSAENOTSOCK
 
 #ifdef USE_SOCKETS_AS_HANDLES