From 69eebf37e321b056ccf882034d355c2504ac2e8d Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Thu, 31 Oct 2019 09:50:09 +0800 Subject: [PATCH] use HAVE_LIMITS_H for the system header --- configure.ac | 2 +- include/common.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2e83876f..47cb153a 100644 --- a/configure.ac +++ b/configure.ac @@ -62,7 +62,7 @@ dnl ======================================================================== dnl Checks for header files. AC_HEADER_STDC AC_HEADER_DIRENT -AC_CHECK_HEADERS(sys/types.h sys/time.h termio.h unistd.h math.h locale.h) +AC_CHECK_HEADERS(limits.h math.h locale.h unistd.h termio.h sys/types.h sys/time.h) dnl Checks for typedefs, structures, and compiler characteristics. AC_C_CONST diff --git a/include/common.h b/include/common.h index 71cccb17..8ab42147 100644 --- a/include/common.h +++ b/include/common.h @@ -1701,7 +1701,7 @@ typedef struct _GAL_Rect { #endif /* Commonly used definitions */ -#if !defined(__NOUNIX__) || defined (__ECOS__) || defined (__RTEMS__) +#if HAVE_LIMITS_H #include #endif