From f504e5a2532c2228f08aa897b029f2a412970a50 Mon Sep 17 00:00:00 2001 From: "Marc G. Fournier" Date: Wed, 22 Jan 1997 04:41:45 +0000 Subject: [PATCH] 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 --- src/backend/optimizer/path/costsize.c | 4 ++-- src/include/config.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/backend/optimizer/path/costsize.c b/src/backend/optimizer/path/costsize.c index dc08c38ed4..5c03305b99 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 +# include # define MAXINT INT_MAX # else # ifdef USE_VALUES_H diff --git a/src/include/config.h b/src/include/config.h index 7b09b766ca..0ac869315c 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