diff options
author | Yang Tse <yangsita@gmail.com> | 2008-11-14 02:51:41 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-11-14 02:51:41 +0000 |
commit | f9f211d2c62c2c1354be95198209a1e147c7e39d (patch) | |
tree | 2bb2e7b737f2243eefac908cb929f208c6c45f0f /m4/curl-functions.m4 | |
parent | 77b30f69e444f46b9b59f0037c056afa9c5272d0 (diff) | |
download | curl-f9f211d2c62c2c1354be95198209a1e147c7e39d.tar.gz |
#include <stdlib.h> in the getifaddrs() runtime check for the exit() prototype
Diffstat (limited to 'm4/curl-functions.m4')
-rw-r--r-- | m4/curl-functions.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4 index 118b55785..3b902e6b2 100644 --- a/m4/curl-functions.m4 +++ b/m4/curl-functions.m4 @@ -22,7 +22,7 @@ #*************************************************************************** # File version for 'aclocal' use. Keep it a single number. -# serial 35 +# serial 36 dnl CURL_INCLUDES_ARPA_INET @@ -1516,6 +1516,7 @@ dnl with shell variable curl_disallow_getifaddrs, then dnl HAVE_GETIFADDRS will be defined. AC_DEFUN([CURL_CHECK_FUNC_GETIFADDRS], [ + AC_REQUIRE([CURL_INCLUDES_STDLIB])dnl AC_REQUIRE([CURL_INCLUDES_IFADDRS])dnl # tst_links_getifaddrs="unknown" @@ -1572,6 +1573,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GETIFADDRS], [ AC_MSG_CHECKING([if getifaddrs seems to work]) AC_RUN_IFELSE([ AC_LANG_PROGRAM([[ + $curl_includes_stdlib $curl_includes_ifaddrs ]],[[ struct ifaddrs *ifa = 0; |