summaryrefslogtreecommitdiff
path: root/CMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-14 15:35:05 +0200
committerDaniel Stenberg <daniel@haxx.se>2015-08-14 16:12:27 +0200
commita9c97fba81bd638ce0e29488708bd0e182679898 (patch)
tree99e7cd4168fdac02c72409550f61d730cc2c3acb /CMake
parent1a85c8ef150abc4725059a45015f38d09849f44b (diff)
downloadcurl-a9c97fba81bd638ce0e29488708bd0e182679898.tar.gz
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).
Diffstat (limited to 'CMake')
-rw-r--r--CMake/CurlTests.c2
1 files changed, 1 insertions, 1 deletions
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)