]> granicus.if.org Git - apache/commitdiff
PR54613: protect the invoke_mtx with #if APR_HAS_THREADS.
authorEric Covener <covener@apache.org>
Mon, 2 Mar 2015 17:47:43 +0000 (17:47 +0000)
committerEric Covener <covener@apache.org>
Mon, 2 Mar 2015 17:47:43 +0000 (17:47 +0000)
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

include/httpd.h

index ba0bc990b9e7f73abdbdeeed5481eaa9b736cbd6..7d66b743a5c04bf0a60ccc1b7625ee66c3dbddf6 100644 (file)
@@ -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;