mirror of
https://github.com/postgres/postgres.git
synced 2025-06-05 00:02:04 -04:00
Make sure FD_SETSIZE is set before we include any Windows
header files. Josh Williams
This commit is contained in:
parent
e9d2f68632
commit
4f9bb2766d
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.75 2007/12/11 02:31:49 tgl Exp $
|
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.75.2.1 2009/07/30 09:28:03 mha Exp $
|
||||||
*
|
*
|
||||||
* pgbench: a simple benchmark program for PostgreSQL
|
* pgbench: a simple benchmark program for PostgreSQL
|
||||||
* written by Tatsuo Ishii
|
* written by Tatsuo Ishii
|
||||||
@ -17,6 +17,11 @@
|
|||||||
* suitability of this software for any purpose. It is provided "as
|
* suitability of this software for any purpose. It is provided "as
|
||||||
* is" without express or implied warranty.
|
* is" without express or implied warranty.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
#define FD_SETSIZE 1024 /* set before winsock2.h is included */
|
||||||
|
#endif /* ! WIN32 */
|
||||||
|
|
||||||
#include "postgres_fe.h"
|
#include "postgres_fe.h"
|
||||||
|
|
||||||
#include "libpq-fe.h"
|
#include "libpq-fe.h"
|
||||||
@ -24,8 +29,6 @@
|
|||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
#undef FD_SETSIZE
|
|
||||||
#define FD_SETSIZE 1024
|
|
||||||
#include <win32.h>
|
#include <win32.h>
|
||||||
#else
|
#else
|
||||||
#include <sys/time.h>
|
#include <sys/time.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user