Skip to content
Snippets Groups Projects
Commit a9c97fba authored by Brad King's avatar Brad King Committed by Daniel Stenberg
Browse files

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 aebfd4cf (cmake: fix gethostby{addr,name}_r in
CurlTests, 2014-10-31).
parent 1a85c8ef
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment