Skip to content

Commit f504e5a

Browse files
committed
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
1 parent 0aa4cfc commit f504e5a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/backend/optimizer/path/costsize.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.9 1997/01/13 03:54:15 bryanh Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/optimizer/path/costsize.c,v 1.10 1997/01/22 04:41:45 scrappy Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -22,7 +22,7 @@
2222
# define MAXINT INT_MAX
2323
#else
2424
# if defined(USE_LIMITS_H)
25-
# include <machine/limits.h>
25+
# include <limits.h>
2626
# define MAXINT INT_MAX
2727
# else
2828
# ifdef USE_VALUES_H

src/include/config.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
#endif
9999

100100
#if defined(i386_solaris)
101+
# define USE_LIMITS_H
101102
# define USE_POSIX_TIME
102103
# define USE_POSIX_SIGNALS
103104
# define NEED_ISINF
@@ -172,6 +173,7 @@
172173
#endif
173174

174175
#if defined(sparc_solaris)
176+
# define USE_LIMITS_H
175177
# define USE_POSIX_TIME
176178
# define USE_POSIX_SIGNALS
177179
# define NEED_ISINF

0 commit comments

Comments
 (0)