aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-07-18 04:59:42 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-07-18 04:59:42 +0000
commitbc0bd47c6a8e020c523cc69a8a3c8e9dab8bb61b (patch)
tree100cb4c0c81ba0190bc3cad0e1efc290fb2fc582
parent55aab6a43453efbc5e10e8381343d474c2d70298 (diff)
downloadpostgresql-bc0bd47c6a8e020c523cc69a8a3c8e9dab8bb61b.tar.gz
postgresql-bc0bd47c6a8e020c523cc69a8a3c8e9dab8bb61b.zip
Fixes: In the solaris port the file descriptors are hard coded to 20 (from the
include file sys/param.h Submitted by: michael.siebenborn@ae3.Hypo.DE (Michael Siebenborn (6929))
-rw-r--r--src/backend/storage/file/fd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/backend/storage/file/fd.c b/src/backend/storage/file/fd.c
index 542e174eee6..8f1bafef4d5 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.2 1996/07/15 19:22:07 scrappy Exp $
+ * $Id: fd.c,v 1.3 1996/07/18 04:59:42 scrappy Exp $
*
* NOTES:
*
@@ -62,6 +62,11 @@
#define NOFILE NOFILE_IN_U
#endif /* PORTNAME_sparc */
+#ifdef PORTNAME_sparc_solaris
+#include <sys/user.h>
+#undef NOFILE
+#define NOFILE 64
+#endif /* PORTNAME_sparc_solaris */
/*
* Problem: Postgres does a system(ld...) to do dynamic loading. This
* will open several extra files in addition to those used by