]> granicus.if.org Git - postgresql/commitdiff
Taking a chance here. Under both Solaris and FreeBSD, there is a
authorMarc G. Fournier <scrappy@hub.org>
Wed, 22 Jan 1997 04:41:45 +0000 (04:41 +0000)
committerMarc G. Fournier <scrappy@hub.org>
Wed, 22 Jan 1997 04:41:45 +0000 (04:41 +0000)
/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

src/backend/optimizer/path/costsize.c
src/include/config.h

index dc08c38ed43064ff43d97a4fcd56333472b8c6de..5c03305b99edd7e3bf4dfb4f360180d34b591ce7 100644 (file)
@@ -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
index 7b09b766caae5a04e66d17067d47ac143ca5b0b4..0ac869315c04ad4da7b65d6aa0d09cc4c76c4183 100644 (file)
@@ -98,6 +98,7 @@
 #endif
 
 #if defined(i386_solaris) 
+#  define USE_LIMITS_H
 #  define USE_POSIX_TIME 
 #  define USE_POSIX_SIGNALS
 #  define NEED_ISINF 
 #endif
 
 #if defined(sparc_solaris)
+#  define USE_LIMITS_H
 #  define USE_POSIX_TIME 
 #  define USE_POSIX_SIGNALS
 #  define NEED_ISINF