From ca89de66107d7fed50eac1f9beb0f16655c8491d Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 29 Apr 2010 03:49:37 +0200 Subject: Fix gethostbyname_r argument count detection, ... ...those that use NULL will now also #include . --- m4-local/gethostbyname_r.m4 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'm4-local') diff --git a/m4-local/gethostbyname_r.m4 b/m4-local/gethostbyname_r.m4 index 980bd700..84f99c83 100644 --- a/m4-local/gethostbyname_r.m4 +++ b/m4-local/gethostbyname_r.m4 @@ -13,6 +13,7 @@ dnl @author Brian Stafford dnl dnl based on version by Caolan McNamara dnl based on David Arnold's autoconf suggestion in the threads faq +dnl with fixes and updates by Matthias Andree dnl AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R], [AC_CACHE_CHECK(number of arguments to gethostbyname_r, @@ -30,6 +31,7 @@ AC_DEFUN([ACX_WHICH_GETHOSTBYNAME_R], [ dnl acx_cv_which_gethostbyname_r=0 AC_TRY_LINK([ +#include # include ], [ char *name; @@ -43,6 +45,7 @@ dnl acx_cv_which_gethostbyname_r=0 [ dnl acx_cv_which_gethostbyname_r=0 AC_TRY_LINK([ +#include # include ], [ char *name; -- cgit v1.2.3