summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-23 00:38:23 +0000
committerYang Tse <yangsita@gmail.com>2008-10-23 00:38:23 +0000
commit49268447c8012cd49a809ff5eac656827a281b0c (patch)
tree42c3b42666af9b6c63a52aefaac424b56ae8a30e /acinclude.m4
parent0e13792289ac0e4b2032b7a25f3d8314b6ba12bf (diff)
downloadc-ares-49268447c8012cd49a809ff5eac656827a281b0c.tar.gz
c-ares-49268447c8012cd49a809ff5eac656827a281b0c.tar.bz2
c-ares-49268447c8012cd49a809ff5eac656827a281b0c.zip
#include <stdlib.h> for exit() prototype
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 0225f9b..abe10d7 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -702,6 +702,9 @@ AC_DEFUN([CURL_CHECK_NI_WITHSCOPEID], [
[ac_cv_working_ni_withscopeid], [
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#ifdef HAVE_STDIO_H
#include <stdio.h>
#endif
@@ -1785,6 +1788,9 @@ AC_DEFUN([CURL_CHECK_LIBS_CLOCK_GETTIME_MONOTONIC], [
AC_MSG_CHECKING([if monotonic clock_gettime works])
AC_RUN_IFELSE([
AC_LANG_PROGRAM([[
+#ifdef HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif