mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
#include <stdlib.h> in the getifaddrs() runtime check for the exit() prototype
This commit is contained in:
parent
77b30f69e4
commit
f9f211d2c6
@ -22,7 +22,7 @@
|
|||||||
#***************************************************************************
|
#***************************************************************************
|
||||||
|
|
||||||
# File version for 'aclocal' use. Keep it a single number.
|
# File version for 'aclocal' use. Keep it a single number.
|
||||||
# serial 35
|
# serial 36
|
||||||
|
|
||||||
|
|
||||||
dnl CURL_INCLUDES_ARPA_INET
|
dnl CURL_INCLUDES_ARPA_INET
|
||||||
@ -1516,6 +1516,7 @@ dnl with shell variable curl_disallow_getifaddrs, then
|
|||||||
dnl HAVE_GETIFADDRS will be defined.
|
dnl HAVE_GETIFADDRS will be defined.
|
||||||
|
|
||||||
AC_DEFUN([CURL_CHECK_FUNC_GETIFADDRS], [
|
AC_DEFUN([CURL_CHECK_FUNC_GETIFADDRS], [
|
||||||
|
AC_REQUIRE([CURL_INCLUDES_STDLIB])dnl
|
||||||
AC_REQUIRE([CURL_INCLUDES_IFADDRS])dnl
|
AC_REQUIRE([CURL_INCLUDES_IFADDRS])dnl
|
||||||
#
|
#
|
||||||
tst_links_getifaddrs="unknown"
|
tst_links_getifaddrs="unknown"
|
||||||
@ -1572,6 +1573,7 @@ AC_DEFUN([CURL_CHECK_FUNC_GETIFADDRS], [
|
|||||||
AC_MSG_CHECKING([if getifaddrs seems to work])
|
AC_MSG_CHECKING([if getifaddrs seems to work])
|
||||||
AC_RUN_IFELSE([
|
AC_RUN_IFELSE([
|
||||||
AC_LANG_PROGRAM([[
|
AC_LANG_PROGRAM([[
|
||||||
|
$curl_includes_stdlib
|
||||||
$curl_includes_ifaddrs
|
$curl_includes_ifaddrs
|
||||||
]],[[
|
]],[[
|
||||||
struct ifaddrs *ifa = 0;
|
struct ifaddrs *ifa = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user