From: Martin Kraemer Date: Wed, 19 Apr 2006 08:56:59 +0000 (+0000) Subject: Fix for platforms without threads: inreslist exists only if APR_HAS_THREADS is set X-Git-Tag: 2.3.0~2443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcfc9fd022f3815e9704c932789904ddbd2467c9;p=thirdparty%2Fapache%2Fhttpd.git Fix for platforms without threads: inreslist exists only if APR_HAS_THREADS is set git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395180 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index b4ab3c0d12e..add7f22ab0e 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -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; }