From a17d562fdbd24a18b3ffb2c6ecdd3644b3980b77 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 3 Feb 2015 07:33:26 -0700 Subject: [PATCH] SIZE_MAX may be in limits.h on pre-C99 compilers. --- configure | 1 + configure.ac | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 6f49dd976..ba22b39d5 100755 --- a/configure +++ b/configure @@ -20935,6 +20935,7 @@ _ACEOF ac_fn_c_check_decl "$LINENO" "SIZE_MAX" "ac_cv_have_decl_SIZE_MAX" " #include +#include #ifdef HAVE_INTTYPES_H # include #endif diff --git a/configure.ac b/configure.ac index f0447649f..c404d74d6 100644 --- a/configure.ac +++ b/configure.ac @@ -2958,7 +2958,7 @@ AC_INCLUDES_DEFAULT ]) dnl -dnl Check for incomplete limits.h and missing SIZE_MAX +dnl Check for incomplete limits.h and missing SIZE_MAX. dnl We need to add OSDEFS to CFLAGS to expose LLONG_MAX et al on glibc. dnl _CFLAGS="$CFLAGS" @@ -2969,6 +2969,7 @@ AC_CHECK_DECLS([OPEN_MAX, LLONG_MAX, LLONG_MIN, ULLONG_MAX, PATH_MAX, HOST_NAME_ ]) AC_CHECK_DECLS([SIZE_MAX], [], [], [ #include +#include #ifdef HAVE_INTTYPES_H # include #endif -- 2.40.0