1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00
curl/CMake
Peter Wu aebfd4cfbf cmake: fix gethostby{addr,name}_r in CurlTests
This patch cleans up the automatically-generated (?) code and fixes one
case that will always fail due to syntax error.

HAVE_GETHOSTBYADDR_R_5_REENTRANT always failed because of a trailing
character ("int length;q"). Several parameter type and unused variable
warnings popped up. This causes a detection failure with -Werror.

Observe that the REENTRANT cases are exactly the same as their
non-REENTRANT cases except for a `_REENTRANT` macro definition.
Merge all these pieces and build one big main function with different
cases, but reusing variables where logical.

For the cases where the parameters where NULL, I looked at
lib/hostip4.c to get an idea of the parameters types.

void-cast variables such as 'rc' to avoid -Wuninitialized errors.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
2014-11-03 09:10:54 +01:00
..
Platforms cmake: drop _BSD_SOURCE macro usage 2014-11-03 09:10:54 +01:00
CMakeConfigurableFile.in Initial CMake scripts (libcurl only), based on the merge of tetest scripts and mine. These are far to be functionnal yet. 2009-04-02 13:14:53 +00:00
CurlCheckCSourceCompiles.cmake Cmake: Removed repeated content from ending blocks 2014-08-25 12:44:24 +02:00
CurlCheckCSourceRuns.cmake ENH: lower case cmake functions and remove tabs and re-indent cmake code 2009-06-09 17:29:16 +00:00
CurlTests.c cmake: fix gethostby{addr,name}_r in CurlTests 2014-11-03 09:10:54 +01:00
FindCARES.cmake removed execute file permission 2011-12-30 03:53:25 +01:00
FindGSS.cmake Cmake: Build with GSSAPI (MIT or Heimdal) 2014-10-09 13:48:31 +02:00
FindLibSSH2.cmake Cmake: LibSSH2 detection and use. 2014-08-25 12:44:24 +02:00
Macros.cmake Cmake: Avoid cycle directory dependencies. 2014-10-09 13:48:30 +02:00
OtherTests.cmake Cmake: Possibility to use OpenLDAP, OpenSSL, LibSSH2 on windows 2014-08-25 12:44:24 +02:00
Utilities.cmake ENH: lower case cmake functions and remove tabs and re-indent cmake code 2009-06-09 17:29:16 +00:00