From: Alex Rousskov Date: Tue, 31 Aug 2010 23:41:30 +0000 (-0600) Subject: Define SIZEOF_OFF_T to fix overflow checks. X-Git-Tag: take1~309 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=50f9c87342c359fab57fd9ff386fbd3b93c2557f;p=thirdparty%2Fsquid.git 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 c06564908f..75090e0c92 100644 --- a/configure.in +++ b/configure.in @@ -2285,6 +2285,8 @@ AC_CHECK_TYPE([bool]) #need the defines for PRId64 AC_CHECK_SIZEOF(int64_t) AC_CHECK_SIZEOF(long) +#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.