]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/blobdiff - src/connection.c
Fix compile on OpenBSD.
[tlsproxy/tlsproxy.git] / src / connection.c
index ad7298a876033dd3b37e7303901506c9f4b9b463..4538f7532fd5681bf49c775c80ee36dd00f817c5 100644 (file)
@@ -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) {