aboutsummaryrefslogtreecommitdiff
path: root/contrib/pgbench/pgbench.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-09-29 13:53:35 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-09-29 13:53:35 +0000
commit2a7da3f5648684df07126e94a96dc5bb82a9ba65 (patch)
tree7f928ae93779f7aa57979e448be95f792d8037cb /contrib/pgbench/pgbench.c
parent30826ce8e3a95c846393a65826a774f0ba8dccb4 (diff)
downloadpostgresql-2a7da3f5648684df07126e94a96dc5bb82a9ba65.tar.gz
postgresql-2a7da3f5648684df07126e94a96dc5bb82a9ba65.zip
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.
Diffstat (limited to 'contrib/pgbench/pgbench.c')
-rw-r--r--contrib/pgbench/pgbench.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c
index a8b0b045067..6b9e3edd201 100644
--- a/contrib/pgbench/pgbench.c
+++ b/contrib/pgbench/pgbench.c
@@ -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);