Skip to content
Snippets Groups Projects
Commit 7ecf7eea authored by Tom Lane's avatar Tom Lane
Browse files

Modify pgbench.c not to depend on configure, since it's not shipped with one.

parent d78feff9
No related branches found
No related tags found
No related merge requests found
/* /*
* $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.1 2000/01/15 12:38:09 ishii Exp $ * $Header: /cvsroot/pgsql/contrib/pgbench/pgbench.c,v 1.2 2000/04/08 18:32:24 tgl Exp $
* *
* pgbench: a simple TPC-B like benchmark program for PostgreSQL * pgbench: a simple TPC-B like benchmark program for PostgreSQL
* written by Tatsuo Ishii * written by Tatsuo Ishii
...@@ -527,7 +527,7 @@ int main(int argc, char **argv) { ...@@ -527,7 +527,7 @@ int main(int argc, char **argv) {
exit(1); exit(1);
} }
#ifndef __CYGWIN32__ #ifndef __CYGWIN32__
#ifdef HAVE_RLIMIT_NOFILE /* most platform uses RLIMIT_NOFILE */ #ifdef RLIMIT_NOFILE /* most platform uses RLIMIT_NOFILE */
if (getrlimit(RLIMIT_NOFILE,&rlim) == -1) { if (getrlimit(RLIMIT_NOFILE,&rlim) == -1) {
#else /* but BSD doesn't ... */ #else /* but BSD doesn't ... */
if (getrlimit(RLIMIT_OFILE,&rlim) == -1) { if (getrlimit(RLIMIT_OFILE,&rlim) == -1) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment