Fix default windows FD_SETSIZE, closes #506

https://support.microsoft.com/en-us/kb/111855 describes
that the user is expected to set the FD_SETSIZE macro
before including winsock2.h
This commit is contained in:
Marko Mikulicic 2015-04-17 02:30:22 +02:00
parent 5c7aeac148
commit 1cd9715095

View File

@ -95,6 +95,9 @@
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
#ifndef FD_SETSIZE
#define FD_SETSIZE 1024
#endif
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>