From d34f8b80a1fd9507d04882cb85a946ce70436d32 Mon Sep 17 00:00:00 2001 From: kkuznetsov Date: Tue, 25 Jul 2006 13:03:11 +0000 Subject: [PATCH] Fix compile error in sort.cpp --- configure.in | 1 + src/include/gen/autoconfig_msvc.h | 1 + src/jrd/sort.cpp | 4 ++++ 3 files changed, 6 insertions(+) diff --git a/configure.in b/configure.in index 907736abe4..de3686b2a6 100644 --- a/configure.in +++ b/configure.in @@ -376,6 +376,7 @@ AC_HEADER_TIME AC_CHECK_HEADERS(sys/timeb.h) AC_CHECK_HEADERS(sys/param.h) AC_CHECK_HEADERS(sys/ioctl.h) +AC_CHECK_HEADERS(limits.h) AC_CHECK_HEADERS(setjmp.h) AC_CHECK_HEADERS(stdarg.h) AC_CHECK_HEADERS(stdlib.h) diff --git a/src/include/gen/autoconfig_msvc.h b/src/include/gen/autoconfig_msvc.h index 61ad2c9d49..33d1c79207 100644 --- a/src/include/gen/autoconfig_msvc.h +++ b/src/include/gen/autoconfig_msvc.h @@ -83,6 +83,7 @@ #define HAVE_MATH_H #undef HAVE_PTHREAD_H #undef HAVE_SYS_TYPES_H +#undef HAVE_LIMITS_H #define HAVE_SYS_STAT_H #undef HAVE_SYS_UIO_H #undef HAVE_SYS_WAIT_H diff --git a/src/jrd/sort.cpp b/src/jrd/sort.cpp index dc62ac67d3..e70658c42a 100644 --- a/src/jrd/sort.cpp +++ b/src/jrd/sort.cpp @@ -49,6 +49,10 @@ #include #endif +#ifdef HAVE_LIMITS_H +#include /* On some systems for ULONG_MAX */ +#endif + #ifdef HAVE_SYS_UIO_H #include #endif