mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-22 11:36:21 +00:00
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:
1 parent
5c7aeac148
commit
1cd9715095
1 file changed
+3
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user