mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
Convert MISSING_SYSCONF to !HAVE_SYSCONF for autoconf
From: Keith Parks
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
* Copyright (c) 1994, Regents of the University of California
|
* Copyright (c) 1994, Regents of the University of California
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* 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:
|
* NOTES:
|
||||||
*
|
*
|
||||||
@ -196,7 +196,7 @@ pg_nofile(void)
|
|||||||
static long no_files = 0;
|
static long no_files = 0;
|
||||||
|
|
||||||
if (no_files == 0) {
|
if (no_files == 0) {
|
||||||
#if defined(MISSING_SYSCONF)
|
#ifndef HAVE_SYSCONF
|
||||||
no_files = (long)NOFILE;
|
no_files = (long)NOFILE;
|
||||||
#else
|
#else
|
||||||
no_files = sysconf(_SC_OPEN_MAX);
|
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);
|
elog(DEBUG,"pg_nofile: Unable to get _SC_OPEN_MAX using sysconf() using (%d)", NOFILE);
|
||||||
no_files = (long)NOFILE;
|
no_files = (long)NOFILE;
|
||||||
}
|
}
|
||||||
#endif /* MISSING_SYSCONF */
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((no_files - RESERVE_FOR_LD) < FD_MINFREE)
|
if ((no_files - RESERVE_FOR_LD) < FD_MINFREE)
|
||||||
|
@ -35,6 +35,7 @@
|
|||||||
#define HAVE_CBRT
|
#define HAVE_CBRT
|
||||||
#define HAVE_RINT
|
#define HAVE_RINT
|
||||||
#define HAVE_GETRUSAGE
|
#define HAVE_GETRUSAGE
|
||||||
|
#define HAVE_SYSCONF
|
||||||
|
|
||||||
#if defined(aix)
|
#if defined(aix)
|
||||||
# undef HAVE_SYS_SELECT_H
|
# undef HAVE_SYS_SELECT_H
|
||||||
@ -151,6 +152,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(nextstep)
|
#if defined(nextstep)
|
||||||
|
# undef HAVE_SYSCONF
|
||||||
# undef HAVE_VALUES_H
|
# undef HAVE_VALUES_H
|
||||||
# include <sys/ioctl.h>
|
# include <sys/ioctl.h>
|
||||||
# if defined(__STRICT_ANSI__)
|
# if defined(__STRICT_ANSI__)
|
||||||
|
Reference in New Issue
Block a user