File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 6
6
* Copyright (c) 1994, Regents of the University of California
7
7
*
8
8
* IDENTIFICATION
9
- * $Id: fd.c,v 1.13 1997/01/13 01:25:29 scrappy Exp $
9
+ * $Id: fd.c,v 1.14 1997/01/27 00:09:43 scrappy Exp $
10
10
*
11
11
* NOTES:
12
12
*
@@ -196,15 +196,15 @@ pg_nofile(void)
196
196
static long no_files = 0 ;
197
197
198
198
if (no_files == 0 ) {
199
- #if defined( MISSING_SYSCONF )
199
+ #ifndef HAVE_SYSCONF
200
200
no_files = (long )NOFILE ;
201
201
#else
202
202
no_files = sysconf (_SC_OPEN_MAX );
203
203
if (no_files == -1 ) {
204
204
elog (DEBUG ,"pg_nofile: Unable to get _SC_OPEN_MAX using sysconf() using (%d)" , NOFILE );
205
205
no_files = (long )NOFILE ;
206
206
}
207
- #endif /* MISSING_SYSCONF */
207
+ #endif
208
208
}
209
209
210
210
if ((no_files - RESERVE_FOR_LD ) < FD_MINFREE )
Original file line number Diff line number Diff line change 35
35
#define HAVE_CBRT
36
36
#define HAVE_RINT
37
37
#define HAVE_GETRUSAGE
38
+ #define HAVE_SYSCONF
38
39
39
40
#if defined(aix )
40
41
# undef HAVE_SYS_SELECT_H
151
152
#endif
152
153
153
154
#if defined(nextstep )
155
+ # undef HAVE_SYSCONF
154
156
# undef HAVE_VALUES_H
155
157
# include <sys/ioctl.h>
156
158
# if defined(__STRICT_ANSI__ )
You can’t perform that action at this time.
0 commit comments