summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-10 20:54:23 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-10 20:54:23 (GMT)
commit9e287a255667ed9e6ed0b00e82bdbc95970e9ef0 (patch)
tree8e1280a9d14f6efd8a04a4eb3ae1ff768ee0846f /Source
parent3aa781ab6db8b07adaf3070c8f3371683fb75fbd (diff)
downloadCMake-9e287a255667ed9e6ed0b00e82bdbc95970e9ef0.zip
CMake-9e287a255667ed9e6ed0b00e82bdbc95970e9ef0.tar.gz
CMake-9e287a255667ed9e6ed0b00e82bdbc95970e9ef0.tar.bz2
Add another AIX test
Diffstat (limited to 'Source')
-rw-r--r--Source/CTest/Curl/CMake/CurlTests.c21
-rw-r--r--Source/CTest/Curl/CMakeLists.txt1
2 files changed, 22 insertions, 0 deletions
diff --git a/Source/CTest/Curl/CMake/CurlTests.c b/Source/CTest/Curl/CMake/CurlTests.c
index 443099a..42fa9be 100644
--- a/Source/CTest/Curl/CMake/CurlTests.c
+++ b/Source/CTest/Curl/CMake/CurlTests.c
@@ -370,3 +370,24 @@ int main()
return 0;
}
#endif
+#ifdef HAVE_GETADDRINFO
+#include <netdb.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+
+void main(void) {
+ struct addrinfo hints, *ai;
+ int error;
+
+ memset(&hints, 0, sizeof(hints));
+ hints.ai_family = AF_UNSPEC;
+ hints.ai_socktype = SOCK_STREAM;
+ error = getaddrinfo("127.0.0.1", "8080", &hints, &ai);
+ if (error) {
+ exit(1);
+ }
+ else {
+ exit(0);
+ }
+}
+#endif
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index 3e42d79..6730736 100644
--- a/Source/CTest/Curl/CMakeLists.txt
+++ b/Source/CTest/Curl/CMakeLists.txt
@@ -265,6 +265,7 @@ FOREACH(CURL_TEST
RETSIGTYPE_TEST
HAVE_INET_NTOA_R_DECL
HAVE_INET_NTOA_R_DECL_REENTRANT
+ HAVE_GETADDRINFO
)
CURL_INTERNAL_TEST(${CURL_TEST})
ENDFOREACH(CURL_TEST)