X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tests%2Fclient.c;h=798c5cbdc3ff4aaf3fcde75fe6756d5a5b9e7a4f;hb=6b497d719313abe2e8adcd431778869df206e5be;hp=fe10c8ce8b1f0983375797b1d44dcc9c548d1abe;hpb=c51f4531e09a0fcf27aa9f3b5150fbadcf4f1a79;p=tlsproxy%2Ftlsproxy.git diff --git a/tests/client.c b/tests/client.c index fe10c8c..798c5cb 100644 --- a/tests/client.c +++ b/tests/client.c @@ -224,8 +224,10 @@ static int connect_to_host(const char *hostname, const char *port) { gai_hints.ai_socktype = SOCK_STREAM; gai_hints.ai_protocol = 0; gai_hints.ai_flags = AI_NUMERICSERV /* given port is numeric */ +#ifdef AI_ADDRCONFIG | AI_ADDRCONFIG /* supported by this computer */ - | AI_V4MAPPED; /* support IPv4 through IPv6 */ +#endif + ; gai_return = getaddrinfo(hostname, port, &gai_hints, &gai_result); if (gai_return != 0) { if (gai_return == EAI_SYSTEM) {