Commit 9e287a25 authored by Andy Cedilnik's avatar Andy Cedilnik
Browse files

Add another AIX test

parent 3aa781ab
...@@ -370,3 +370,24 @@ int main() ...@@ -370,3 +370,24 @@ int main()
return 0; return 0;
} }
#endif #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
...@@ -265,6 +265,7 @@ FOREACH(CURL_TEST ...@@ -265,6 +265,7 @@ FOREACH(CURL_TEST
RETSIGTYPE_TEST RETSIGTYPE_TEST
HAVE_INET_NTOA_R_DECL HAVE_INET_NTOA_R_DECL
HAVE_INET_NTOA_R_DECL_REENTRANT HAVE_INET_NTOA_R_DECL_REENTRANT
HAVE_GETADDRINFO
) )
CURL_INTERNAL_TEST(${CURL_TEST}) CURL_INTERNAL_TEST(${CURL_TEST})
ENDFOREACH(CURL_TEST) ENDFOREACH(CURL_TEST)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment