]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Fix for platforms without threads: inreslist exists only if APR_HAS_THREADS is set
authorMartin Kraemer <martin@apache.org>
Wed, 19 Apr 2006 08:56:59 +0000 (08:56 +0000)
committerMartin Kraemer <martin@apache.org>
Wed, 19 Apr 2006 08:56:59 +0000 (08:56 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395180 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/proxy_util.c

index b4ab3c0d12ea0c0da05ab03b25d3e425a188f73b..add7f22ab0eddd403222570ca627aa3ff0ad9eab 100644 (file)
@@ -1567,7 +1567,9 @@ static apr_status_t connection_constructor(void **resource, void *params,
 
     conn->pool   = ctx;
     conn->worker = worker;
+#if APR_HAS_THREADS
     conn->inreslist = 1;
+#endif
     *resource = conn;
 
     return APR_SUCCESS;
@@ -1800,7 +1802,9 @@ PROXY_DECLARE(int) ap_proxy_acquire_connection(const char *proxy_function,
     (*conn)->worker = worker;
     (*conn)->close  = 0;
     (*conn)->close_on_recycle = 0;
+#if APR_HAS_THREADS
     (*conn)->inreslist = 0;
+#endif
 
     return OK;
 }