diff options
author | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2010-09-04 13:15:29 +0000 |
---|---|---|
committer | joe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845> | 2010-09-04 13:15:29 +0000 |
commit | d3edf99e54c36eb2d8e6d4bc8393dc3e1b77a39d (patch) | |
tree | eb11abca12bc3ccf708258be0f7eaf5bb92bf52b | |
parent | 5ebe8ae98780d6ab850376fbf2a330703ead613c (diff) | |
download | neon-d3edf99e54c36eb2d8e6d4bc8393dc3e1b77a39d.tar.gz |
* macros/neon.m4 (NE_CHECK_FUNCS): Fix AI_ADDRCONFIG detection.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1802 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
-rw-r--r-- | macros/neon.m4 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/macros/neon.m4 b/macros/neon.m4 index a93a383..90494eb 100644 --- a/macros/neon.m4 +++ b/macros/neon.m4 @@ -660,7 +660,8 @@ if test $ne_enable_gai = yes; then NE_ENABLE_SUPPORT(IPV6, [IPv6 support is enabled]) AC_DEFINE(USE_GETADDRINFO, 1, [Define if getaddrinfo() should be used]) AC_CACHE_CHECK([for working AI_ADDRCONFIG], [ne_cv_gai_addrconfig], [ - AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <netdb.h>], + AC_RUN_IFELSE([AC_LANG_PROGRAM([#include <netdb.h> +#include <stdlib.h>], [struct addrinfo hints = {0}, *result; hints.ai_flags = AI_ADDRCONFIG; if (getaddrinfo("localhost", NULL, &hints, &result) != 0) return 1;])], |