Increase FD_SETSIZE on windows

This commit is contained in:
Willem Toorop 2016-01-10 12:28:30 +01:00
parent cf387ca3f2
commit 6d7645705a
1 changed files with 8 additions and 0 deletions

View File

@ -1019,6 +1019,14 @@ AC_SUBST(C99COMPATFLAGS)
AH_BOTTOM([ AH_BOTTOM([
#ifdef GETDNS_ON_WINDOWS
/* On windows it is allowed to increase the FD_SETSIZE
* (and nescessary to make our custom eventloop work)
* See: https://support.microsoft.com/en-us/kb/111855
*/
#define FD_SETSIZE 1024
#endif
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>