]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Most configure test programs need stdlib.h for exit()
authorHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 3 Feb 2009 19:29:46 +0000 (20:29 +0100)
committerHenrik Nordstrom <henrik@henriknordstrom.net>
Tue, 3 Feb 2009 19:29:46 +0000 (20:29 +0100)
configure.in

index 36f5d9f0b72f46b92ef0b203eb45d553bfb64e7b..8ad59df006e3ef5b5c1ce62458fb675eabfe168c 100644 (file)
@@ -3052,6 +3052,7 @@ dnl
 AC_CACHE_CHECK(if va_copy is implemented, ac_cv_func_va_copy,
   AC_TRY_RUN([
       #include <stdarg.h>
+      #include <stdlib.h>
       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 <stdarg.h>
+      #include <stdlib.h>
       void f (int i, ...) {
          va_list args1, args2;
          va_start (args1, i);
@@ -3239,6 +3241,9 @@ AC_TRY_RUN([
 #if HAVE_UNISTD_H
 #include <unistd.h>
 #endif
+#if HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
 #if HAVE_SYS_TIME_H
 #include <sys/time.h>
 #endif
@@ -3284,6 +3289,7 @@ else
   AC_TRY_RUN([
 #include <stdio.h>
 #include <unistd.h>
+#include <stdlib.h>
 #include <sys/time.h>  /* needed on FreeBSD */
 #include <sys/param.h>
 #include <sys/resource.h>