From: Gurusamy Sarathy Date: Sun, 5 Aug 2001 21:35:50 +0000 (+0000) Subject: 4-arg select() was busted on windows because change#8178 didn't X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8d3f517adfffb573694d590afed9fde23dd83cec;p=p5sagit%2Fp5-mst-13.2.git 4-arg select() was busted on windows because change#8178 didn't make it into mainline p4raw-link: @8178 on //depot/maint-5.6/perl: 961154a63c3a7b345be8bfbe688f4d089c92e684 p4raw-id: //depot/perl@11589 --- diff --git a/perl.h b/perl.h index 3c7304f..b85b88f 100644 --- 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 # if defined(USE_SOCKS) && defined(I_SOCKS) # if !defined(INCLUDE_PROTOTYPES) diff --git a/win32/include/sys/socket.h b/win32/include/sys/socket.h index e83fd2b..d1f1de6 100644 --- a/win32/include/sys/socket.h +++ b/win32/include/sys/socket.h @@ -17,6 +17,8 @@ extern "C" { #include #include +#include "win32.h" + #define ENOTSOCK WSAENOTSOCK #ifdef USE_SOCKETS_AS_HANDLES