summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-01-22 04:41:45 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-01-22 04:41:45 +0000
commitf504e5a2532c2228f08aa897b029f2a412970a50 (patch)
treef29177ec37e5e5b81f9549a117949b84cdcc94f7 /src
parent0aa4cfca5d5c0f90e0de8440c76e1c0c3e08b193 (diff)
Taking a chance here. Under both Solaris and FreeBSD, there is a
/usr/include/limits.h (which quiets the costsize.c warnings)...under FreeBSD, /usr/include/limits.h *includes* machine/limits.h, while under Solaris, there is no such things as /usr/include/machine... Problem with Solaris pointed out by Mark Wahl
Diffstat (limited to 'src')
-rw-r--r--src/backend/optimizer/path/costsize.c4
-rw-r--r--src/include/config.h2
2 files changed, 4 insertions, 2 deletions
diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c
index dc08c38ed43..5c03305b99e 100644
--- a/src/backend/optimizer/path/costsize.c
+++ b/src/backend/optimizer/path/costsize.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.9 1997/01/13 03:54:15 bryanh Exp $
+ * $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.10 1997/01/22 04:41:45 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -22,7 +22,7 @@
# define MAXINT INT_MAX
#else
# if defined(USE_LIMITS_H)
-# include <machine/limits.h>
+# include <limits.h>
# define MAXINT INT_MAX
# else
# ifdef USE_VALUES_H
diff --git a/src/include/config.h b/src/include/config.h
index 7b09b766caa..0ac869315c0 100644
--- a/src/include/config.h
+++ b/src/include/config.h
@@ -98,6 +98,7 @@
#endif
#if defined(i386_solaris)
+# define USE_LIMITS_H
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NEED_ISINF
@@ -172,6 +173,7 @@
#endif
#if defined(sparc_solaris)
+# define USE_LIMITS_H
# define USE_POSIX_TIME
# define USE_POSIX_SIGNALS
# define NEED_ISINF