X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=tests%2Fclient.c;fp=tests%2Fclient.c;h=798c5cbdc3ff4aaf3fcde75fe6756d5a5b9e7a4f;hb=1af69c9609af41165498e7a1bfda3f32744f12fe;hp=23dca4b3c580dbac340c42be38f4b0d18118b19d;hpb=730ce301477d9d5c9367756bad840eb4504e0257;p=tlsproxy%2Ftlsproxy.git diff --git a/tests/client.c b/tests/client.c index 23dca4b..798c5cb 100644 --- a/tests/client.c +++ b/tests/client.c @@ -224,7 +224,9 @@ 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 */ +#endif ; gai_return = getaddrinfo(hostname, port, &gai_hints, &gai_result); if (gai_return != 0) {