aboutsummaryrefslogtreecommitdiff
path: root/src/backend/storage/file/fd.c
diff options
context:
space:
mode:
authorBryan Henderson <bryanh@giraffe.netgate.net>1996-12-04 03:06:33 +0000
committerBryan Henderson <bryanh@giraffe.netgate.net>1996-12-04 03:06:33 +0000
commit9005a38bdb01bf3294bd9e30e645f00a6d569cd9 (patch)
treec01b8db168d720c8f3377cf7874604f36b6bd340 /src/backend/storage/file/fd.c
parent071797f53942e3c2063e031803a91463a68f4d2a (diff)
downloadpostgresql-9005a38bdb01bf3294bd9e30e645f00a6d569cd9.tar.gz
postgresql-9005a38bdb01bf3294bd9e30e645f00a6d569cd9.zip
Change portname "sparc" to "sunos4" and change some portname dependencies to
feature dependencies. Thanks Kurt J. Lidl.
Diffstat (limited to 'src/backend/storage/file/fd.c')
-rw-r--r--src/backend/storage/file/fd.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index d112c989f73..d02ffcf19f9 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.9 1996/11/08 05:58:21 momjian Exp $
+ * $Id: fd.c,v 1.10 1996/12/04 03:05:58 bryanh Exp $
*
* NOTES:
*
@@ -52,24 +52,20 @@
#include "utils/palloc.h"
#include "storage/fd.h"
-#ifdef sparc
+#if defined(NEED_NOFILE_KLUDGE)
/*
* the SunOS 4 NOFILE is a lie, because the default limit is *not* the
* maximum number of file descriptors you can have open.
*
* we have to either use this number (the default dtablesize) or
* explicitly call setrlimit(RLIMIT_NOFILE, NOFILE).
+ *
+ * this braindamage apparently also affects solaris 2.X as well
*/
#include <sys/user.h>
#undef NOFILE
#define NOFILE NOFILE_IN_U
-#endif /* sparc */
-
-#if defined(sparc_solaris) || defined(i386_solaris)
-#include <sys/user.h>
-#undef NOFILE
-#define NOFILE 64
-#endif /* sparc_solaris || i386_solaris */
+#endif /* NEED_NOFILE_KLUDGE */
/*
* Problem: Postgres does a system(ld...) to do dynamic loading. This