summaryrefslogtreecommitdiff
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-14 09:14:55 -0400
committerBrad King <brad.king@kitware.com>2015-08-17 10:17:50 -0400
commit3f2f1a949c5e262ba7cb6d2d3eaaaf67394b6fdf (patch)
treeaac9b233b5f147caac85a01c3c8bfcb9cbb8434a /Utilities
parent91e8d35ab8ec2d62478a42eff10af88713497fad (diff)
downloadcmake-3f2f1a949c5e262ba7cb6d2d3eaaaf67394b6fdf.tar.gz
curl: Fix check for gethostbyname_r with 5 arguments
Fix the check code to pass 5 arguments instead of 6. This typo was introduced in curl 7.39 but was not noticed because the result of this check is used only if ENABLE_IPV6 is OFF.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmcurl/CMake/CurlTests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utilities/cmcurl/CMake/CurlTests.c b/Utilities/cmcurl/CMake/CurlTests.c
index 04d5e7e469..3c712325fd 100644
--- a/Utilities/cmcurl/CMake/CurlTests.c
+++ b/Utilities/cmcurl/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)