summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-08-14 13:14:55 (GMT)
committerBrad King <brad.king@kitware.com>2015-08-17 14:17:50 (GMT)
commit3f2f1a949c5e262ba7cb6d2d3eaaaf67394b6fdf (patch)
treeaac9b233b5f147caac85a01c3c8bfcb9cbb8434a /Utilities
parent91e8d35ab8ec2d62478a42eff10af88713497fad (diff)
downloadCMake-3f2f1a949c5e262ba7cb6d2d3eaaaf67394b6fdf.zip
CMake-3f2f1a949c5e262ba7cb6d2d3eaaaf67394b6fdf.tar.gz
CMake-3f2f1a949c5e262ba7cb6d2d3eaaaf67394b6fdf.tar.bz2
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 04d5e7e..3c71232 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)