Increase FD_SETSIZE on Win32 to allow for more than 54 clients.
authorMagnus Hagander <magnus@hagander.net>
Mon, 22 Oct 2007 10:40:47 +0000 (10:40 +0000)
committerMagnus Hagander <magnus@hagander.net>
Mon, 22 Oct 2007 10:40:47 +0000 (10:40 +0000)
Per Greg Stark & Dave Page

contrib/pgbench/pgbench.c

index 0fff53e3084c9f3c68a46cdc4700f980fd3bc3f6..27b0f6c79166824659d5eb406274df9a370b659a 100644 (file)
@@ -24,6 +24,8 @@
 #include <ctype.h>
 
 #ifdef WIN32
+#undef FD_SETSIZE
+#define FD_SETSIZE 1024
 #include <win32.h>
 #else
 #include <sys/time.h>