From a9c97fba81bd638ce0e29488708bd0e182679898 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 14 Aug 2015 15:35:05 +0200 Subject: cmake: Fix CurlTests check for gethostbyname_r with 5 arguments Fix the check code to pass 5 arguments instead of 6. This typo was introduced by commit aebfd4cfbf (cmake: fix gethostby{addr,name}_r in CurlTests, 2014-10-31). --- CMake/CurlTests.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMake/CurlTests.c b/CMake/CurlTests.c index 04d5e7e46..3c712325f 100644 --- a/CMake/CurlTests.c +++ b/CMake/CurlTests.c @@ -139,7 +139,7 @@ int main(void) rc = gethostbyname_r(address, &h, &hdata); #elif defined(HAVE_GETHOSTBYNAME_R_5) || \ defined(HAVE_GETHOSTBYNAME_R_5_REENTRANT) - rc = gethostbyname_r(address, &h, buffer, 8192, 0, &h_errnop); + rc = gethostbyname_r(address, &h, buffer, 8192, &h_errnop); (void)hp; /* not used for test */ #elif defined(HAVE_GETHOSTBYNAME_R_6) || \ defined(HAVE_GETHOSTBYNAME_R_6_REENTRANT) -- cgit v1.2.3