httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r1451905 - /httpd/httpd/trunk/modules/proxy/proxy_util.c
Date Sat, 02 Mar 2013 17:07:24 GMT
Author: jim
Date: Sat Mar  2 17:07:23 2013
New Revision: 1451905

URL: http://svn.apache.org/r1451905
Log:
Make AF_UNIX aware... fix Windows/Netware??

Modified:
    httpd/httpd/trunk/modules/proxy/proxy_util.c

Modified: httpd/httpd/trunk/modules/proxy/proxy_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/proxy_util.c?rev=1451905&r1=1451904&r2=1451905&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/proxy_util.c (original)
+++ httpd/httpd/trunk/modules/proxy/proxy_util.c Sat Mar  2 17:07:23 2013
@@ -2452,7 +2452,9 @@ PROXY_DECLARE(int) ap_proxy_connect_back
         }
     }
     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_back
                 break;
             }
         }
-        else {
+        else
+#endif
+        {
             if ((rv = apr_socket_create(&newsock, backend_addr->family,
                                         SOCK_STREAM, APR_PROTO_TCP,
                                         conn->scpool)) != APR_SUCCESS) {



Mime
View raw message