From: Henrik Nordstrom Date: Tue, 3 Feb 2009 19:29:46 +0000 (+0100) Subject: Most configure test programs need stdlib.h for exit() X-Git-Tag: SQUID_3_2_0_1~1224 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cf69e4f2610f774a3f728ff07f716122e460aca9;p=thirdparty%2Fsquid.git Most configure test programs need stdlib.h for exit() --- diff --git a/configure.in b/configure.in index 36f5d9f0b7..8ad59df006 100644 --- a/configure.in +++ b/configure.in @@ -3052,6 +3052,7 @@ dnl AC_CACHE_CHECK(if va_copy is implemented, ac_cv_func_va_copy, AC_TRY_RUN([ #include + #include void f (int i, ...) { va_list args1, args2; va_start (args1, i); @@ -3076,6 +3077,7 @@ dnl AC_CACHE_CHECK(if __va_copy is implemented, ac_cv_func___va_copy, AC_TRY_RUN([ #include + #include void f (int i, ...) { va_list args1, args2; va_start (args1, i); @@ -3239,6 +3241,9 @@ AC_TRY_RUN([ #if HAVE_UNISTD_H #include #endif +#if HAVE_STDLIB_H +#include +#endif #if HAVE_SYS_TIME_H #include #endif @@ -3284,6 +3289,7 @@ else AC_TRY_RUN([ #include #include +#include #include /* needed on FreeBSD */ #include #include