X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=src%2Fconnection.c;h=4538f7532fd5681bf49c775c80ee36dd00f817c5;hb=47779cdadbff9f9f7848828c97bf1dc63c3cb08f;hp=793e4680ebfc6c9312498298a6a4737e5513f2a8;hpb=e83df110da120749285426797455444da6e6cf95;p=tlsproxy%2Ftlsproxy.git diff --git a/src/connection.c b/src/connection.c index 793e468..4538f75 100644 --- a/src/connection.c +++ b/src/connection.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -843,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) {