X-Git-Url: https://ruderich.org/simon/gitweb/?p=tlsproxy%2Ftlsproxy.git;a=blobdiff_plain;f=src%2Fconnection.c;fp=src%2Fconnection.c;h=4538f7532fd5681bf49c775c80ee36dd00f817c5;hp=ad7298a876033dd3b37e7303901506c9f4b9b463;hb=1af69c9609af41165498e7a1bfda3f32744f12fe;hpb=730ce301477d9d5c9367756bad840eb4504e0257 diff --git a/src/connection.c b/src/connection.c index ad7298a..4538f75 100644 --- a/src/connection.c +++ b/src/connection.c @@ -844,7 +844,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) {