mirror of
https://github.com/postgres/postgres.git
synced 2025-07-27 12:41:57 +03:00
Standardize on __CYGWIN__ rather than __CYGWIN32__ macro. Doesn't matter
either way (although the former is preferred by the Cygwin folks themselves), but using only one seems nicer.
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.5 2000/07/12 22:58:57 petere Exp $
|
||||
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.6 2000/09/29 13:53:29 petere Exp $
|
||||
*
|
||||
* pgbench: a simple TPC-B like benchmark program for PostgreSQL
|
||||
* written by Tatsuo Ishii
|
||||
@ -536,7 +536,7 @@ main(int argc, char **argv)
|
||||
int nsocks; /* return from select(2) */
|
||||
int maxsock; /* max socket number to be waited */
|
||||
|
||||
#ifndef __CYGWIN32__
|
||||
#ifndef __CYGWIN__
|
||||
struct rlimit rlim;
|
||||
|
||||
#endif
|
||||
@ -576,7 +576,7 @@ main(int argc, char **argv)
|
||||
fprintf(stderr, "wrong number of clients: %d\n", nclients);
|
||||
exit(1);
|
||||
}
|
||||
#ifndef __CYGWIN32__
|
||||
#ifndef __CYGWIN__
|
||||
#ifdef RLIMIT_NOFILE /* most platform uses RLIMIT_NOFILE */
|
||||
if (getrlimit(RLIMIT_NOFILE, &rlim) == -1)
|
||||
{
|
||||
@ -593,7 +593,7 @@ main(int argc, char **argv)
|
||||
fprintf(stderr, "Use limit/ulimt to increase the limit before using pgbench.\n");
|
||||
exit(1);
|
||||
}
|
||||
#endif /* #ifndef __CYGWIN32__ */
|
||||
#endif /* #ifndef __CYGWIN__ */
|
||||
break;
|
||||
case 's':
|
||||
tps = atoi(optarg);
|
||||
|
Reference in New Issue
Block a user