From: Jim Jagielski Date: Sat, 2 Mar 2013 17:07:23 +0000 (+0000) Subject: Make AF_UNIX aware... fix Windows/Netware?? X-Git-Tag: 2.5.0-alpha~5711 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a641aa24e725a6242cbb144a7c1f2bf61bd003ec;p=apache Make AF_UNIX aware... fix Windows/Netware?? git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1451905 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index 29dda5d820..98b0a26d64 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -2452,7 +2452,9 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function, } } while ((backend_addr || conn->uds_path) && !connected) { - if (conn->uds_path) { +#if APR_HAVE_SYS_UN_H + if (conn->uds_path) + { struct sockaddr_un sa; rv = apr_socket_create(&newsock, AF_UNIX, SOCK_STREAM, 0, @@ -2483,7 +2485,9 @@ PROXY_DECLARE(int) ap_proxy_connect_backend(const char *proxy_function, break; } } - else { + else +#endif + { if ((rv = apr_socket_create(&newsock, backend_addr->family, SOCK_STREAM, APR_PROTO_TCP, conn->scpool)) != APR_SUCCESS) {