diff -c -r1.87 pgbench.c
*** contrib/pgbench/pgbench.c	11 Jun 2009 14:48:51 -0000	1.87
--- contrib/pgbench/pgbench.c	29 Jul 2009 21:18:18 -0000
***************
*** 26,31 ****
--- 26,36 ----
   * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
   *
   */
+ 
+ #ifdef WIN32
+ #define FD_SETSIZE 1024		/* set before winsock2.h is included */
+ #endif   /* ! WIN32 */
+ 
  #include "postgres_fe.h"
  
  #include "libpq-fe.h"
***************
*** 34,41 ****
  #include <ctype.h>
  
  #ifdef WIN32
- #undef FD_SETSIZE
- #define FD_SETSIZE 1024
  #include <win32.h>
  #else
  #include <signal.h>
--- 39,44 ----
