diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-01-27 00:09:47 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-01-27 00:09:47 +0000 |
commit | a246e87d12601ab76e8f7f7993b5f3ffb2635091 (patch) | |
tree | 6d8a3b18760a57613be9117c4ec8d07166f64512 /src/backend/storage/file/fd.c | |
parent | 197c7f54863b0d62b26a02cfedf04cf5cf4229e2 (diff) | |
download | postgresql-a246e87d12601ab76e8f7f7993b5f3ffb2635091.tar.gz postgresql-a246e87d12601ab76e8f7f7993b5f3ffb2635091.zip |
Convert MISSING_SYSCONF to !HAVE_SYSCONF for autoconf
From: Keith Parks
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r-- | src/backend/storage/file/fd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c index b70ffd213b3..c06f89f884f 100644 --- a/src/backend/storage/file/fd.c +++ b/src/backend/storage/file/fd.c @@ -6,7 +6,7 @@ * Copyright (c) 1994, Regents of the University of California * * IDENTIFICATION - * $Id: fd.c,v 1.13 1997/01/13 01:25:29 scrappy Exp $ + * $Id: fd.c,v 1.14 1997/01/27 00:09:43 scrappy Exp $ * * NOTES: * @@ -196,7 +196,7 @@ pg_nofile(void) static long no_files = 0; if (no_files == 0) { -#if defined(MISSING_SYSCONF) +#ifndef HAVE_SYSCONF no_files = (long)NOFILE; #else no_files = sysconf(_SC_OPEN_MAX); @@ -204,7 +204,7 @@ pg_nofile(void) elog(DEBUG,"pg_nofile: Unable to get _SC_OPEN_MAX using sysconf() using (%d)", NOFILE); no_files = (long)NOFILE; } -#endif /* MISSING_SYSCONF */ +#endif } if ((no_files - RESERVE_FOR_LD) < FD_MINFREE) |