From 6d7645705a81a26bf2c3a6283662dd1d4c03fb50 Mon Sep 17 00:00:00 2001 From: Willem Toorop Date: Sun, 10 Jan 2016 12:28:30 +0100 Subject: [PATCH] Increase FD_SETSIZE on windows --- configure.ac | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure.ac b/configure.ac index 8ad29b90..422db4b9 100644 --- a/configure.ac +++ b/configure.ac @@ -1019,6 +1019,14 @@ AC_SUBST(C99COMPATFLAGS) 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 #include #include