Skip to content

Commit

Permalink
cmake: Fix CurlTests check for gethostbyname_r with 5 arguments
Browse files Browse the repository at this point in the history
Fix the check code to pass 5 arguments instead of 6.  This typo was
introduced by commit aebfd4c (cmake: fix gethostby{addr,name}_r in
CurlTests, 2014-10-31).
  • Loading branch information
bradking authored and bagder committed Aug 14, 2015
1 parent 1a85c8e commit a9c97fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMake/CurlTests.c
Expand Up @@ -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)
Expand Down

0 comments on commit a9c97fb

Please sign in to comment.