From ce3edc362fd3b974ac1c29f1603ba071eb753fe2 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 5 Feb 2003 17:52:18 -0500 Subject: [PATCH] BUG: Don't include prototype in test for gethostbyname_r. --- Source/CTest/Curl/CMake/CurlTests.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Source/CTest/Curl/CMake/CurlTests.c b/Source/CTest/Curl/CMake/CurlTests.c index 42fa9be66..763ed7735 100644 --- a/Source/CTest/Curl/CMake/CurlTests.c +++ b/Source/CTest/Curl/CMake/CurlTests.c @@ -182,8 +182,11 @@ rc = gethostbyaddr_r(address, length, type, &h, #undef NULL #define NULL (void *)0 +#if 0 int gethostbyname_r(const char *, struct hostent *, struct hostent_data *); +#endif + int main () { @@ -202,8 +205,11 @@ gethostbyname_r(NULL, NULL, NULL); #undef NULL #define NULL (void *)0 +#if 0 int gethostbyname_r(const char *, struct hostent *, struct hostent_data *); +#endif + int main () { @@ -221,8 +227,11 @@ gethostbyname_r(NULL, NULL, NULL); #undef NULL #define NULL (void *)0 +#if 0 struct hostent * gethostbyname_r(const char *, struct hostent *, char *, int, int *); +#endif + int main () { @@ -239,8 +248,11 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL); #undef NULL #define NULL (void *)0 +#if 0 struct hostent * gethostbyname_r(const char *, struct hostent *, char *, int, int *); +#endif + int main () { @@ -256,9 +268,12 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL); #undef NULL #define NULL (void *)0 +#if 0 int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); +#endif + int main () { @@ -275,9 +290,12 @@ gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL); #undef NULL #define NULL (void *)0 +#if 0 int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); +#endif + int main () {