From: Eric Covener Date: Mon, 2 Mar 2015 17:47:43 +0000 (+0000) Subject: PR54613: protect the invoke_mtx with #if APR_HAS_THREADS. X-Git-Tag: 2.5.0-alpha~3421 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=05a733e484c6bd735f765ccc9a7c111b9010a87d;p=apache PR54613: protect the invoke_mtx with #if APR_HAS_THREADS. No MMN bump, httpd.h cannot be compiled today without APR_HAS_THREADS. With APR_HAS_THREADS there is no structure layout change. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1663375 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/include/httpd.h b/include/httpd.h index ba0bc990b9..7d66b743a5 100644 --- a/include/httpd.h +++ b/include/httpd.h @@ -1026,7 +1026,9 @@ struct request_rec { /** Mutex protect callbacks registered with ap_mpm_register_timed_callback * from being run before the original handler finishes running */ +#if APR_HAS_THREADS apr_thread_mutex_t *invoke_mtx; +#endif /** A struct containing the components of URI */ apr_uri_t parsed_uri;