浏览代码

BUG: Don't include prototype in test for gethostbyname_r.

Brad King 23 年之前
父节点
当前提交
ce3edc362f
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      Source/CTest/Curl/CMake/CurlTests.c

+ 18 - 0
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 ()
 {