Make sure FD_SETSIZE is set before we include any Windows

header files.

Josh Williams
This commit is contained in:
Magnus Hagander 2009-07-30 09:28:05 +00:00
parent 7b70d0a2c9
commit 53890f8073

View File

@ -4,7 +4,7 @@
* A simple benchmark program for PostgreSQL
* Originally written by Tatsuo Ishii and enhanced by many contributors.
*
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.87 2009/06/11 14:48:51 momjian Exp $
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.87.2.1 2009/07/30 09:28:05 mha Exp $
* Copyright (c) 2000-2009, PostgreSQL Global Development Group
* ALL RIGHTS RESERVED;
*
@ -26,6 +26,11 @@
* 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,8 +39,6 @@
#include <ctype.h>
#ifdef WIN32
#undef FD_SETSIZE
#define FD_SETSIZE 1024
#include <win32.h>
#else
#include <signal.h>