|
4 | 4 | * A simple benchmark program for PostgreSQL
|
5 | 5 | * Originally written by Tatsuo Ishii and enhanced by many contributors.
|
6 | 6 | *
|
7 |
| - * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.87 2009/06/11 14:48:51 momjian Exp $ |
| 7 | + * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.88 2009/07/30 09:28:00 mha Exp $ |
8 | 8 | * Copyright (c) 2000-2009, PostgreSQL Global Development Group
|
9 | 9 | * ALL RIGHTS RESERVED;
|
10 | 10 | *
|
|
26 | 26 | * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
|
27 | 27 | *
|
28 | 28 | */
|
| 29 | + |
| 30 | +#ifdefWIN32 |
| 31 | +#defineFD_SETSIZE 1024/* set before winsock2.h is included */ |
| 32 | +#endif/* ! WIN32 */ |
| 33 | + |
29 | 34 | #include"postgres_fe.h"
|
30 | 35 |
|
31 | 36 | #include"libpq-fe.h"
|
|
34 | 39 | #include<ctype.h>
|
35 | 40 |
|
36 | 41 | #ifdefWIN32
|
37 |
| -#undef FD_SETSIZE |
38 |
| -#defineFD_SETSIZE 1024 |
39 | 42 | #include<win32.h>
|
40 | 43 | #else
|
41 | 44 | #include<signal.h>
|
|