mirror of
				https://github.com/postgres/postgres.git
				synced 2025-11-03 09:13:20 +03:00 
			
		
		
		
	Make sure FD_SETSIZE is set before we include any Windows
header files. Josh Williams
This commit is contained in:
		@@ -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.88 2009/07/30 09:28:00 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>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user