From: Amos Jeffries Date: Fri, 3 Sep 2010 05:12:38 +0000 (-0600) Subject: Author: Alex Rousskov X-Git-Tag: SQUID_3_1_8~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=292841a4a4bce93f97df6c9d056fa5575bf6d8d8;p=thirdparty%2Fsquid.git Author: Alex Rousskov Define SIZEOF_OFF_T to fix overflow checks. Overflow checks were broken because 'SIZEOF_OFF_T <= 4' was always true because SIZEOF_OFF_T was not defined and, hence, treated as zero. Co-Advisor test cases: test_case/rfc2616/noXform-fwd-Content-Range-simple-2147483645-2147483646-2147483647-withCc-toClt test_case/rfc2616/noXform-fwd-Content-Range-simple-2147483645-2147483646-*-withCc-toClt --- diff --git a/configure.in b/configure.in index 6cc385522d..b1a91da568 100644 --- a/configure.in +++ b/configure.in @@ -2481,6 +2481,8 @@ AC_CHECK_TYPE(uint64_t,[ AC_CHECK_SIZEOF(uint64_t,,SQUID_DEFAULT_SIZEOF_INCLUDES) AC_DEFINE(HAVE_UINT64_T,1,[uint64_t is defined in system headers]) ],,SQUID_DEFAULT_INCLUDES) +#need the define for overflow checks +AC_CHECK_SIZEOF(off_t) dnl On Solaris 9 x86, gcc may includes a "fixed" set of old system include files dnl that is incompatible with the updated Solaris header files.