Author: stefan2
Date: Fri Oct  1 08:33:27 2010
New Revision: 1003430

URL: http://svn.apache.org/viewvc?rev=1003430&view=rev
Log:
If APR_HAS_THREAD has not been defined, we got a compiler error.
Fix that.

* subversion/libsvn_subr/svn_file_handle_cache.c
  (svn_file_handle_cache__create_cache): init mutex only if APR_HAS_THREAD
   has been set to > 0

Modified:
    
subversion/branches/performance/subversion/libsvn_subr/svn_file_handle_cache.c

Modified: 
subversion/branches/performance/subversion/libsvn_subr/svn_file_handle_cache.c
URL: 
http://svn.apache.org/viewvc/subversion/branches/performance/subversion/libsvn_subr/svn_file_handle_cache.c?rev=1003430&r1=1003429&r2=1003430&view=diff
==============================================================================
--- 
subversion/branches/performance/subversion/libsvn_subr/svn_file_handle_cache.c 
(original)
+++ 
subversion/branches/performance/subversion/libsvn_subr/svn_file_handle_cache.c 
Fri Oct  1 08:33:27 2010
@@ -887,10 +887,11 @@ svn_file_handle_cache__create_cache(svn_
   init_list(&new_cache->unused_entries);
 
   new_cache->first_by_name = apr_hash_make(new_cache->pool);
+
+#if APR_HAS_THREADS
   new_cache->mutex = NULL;
 
   /* synchronization support may or may not be needed or available */
-#if APR_HAS_THREADS
   if (thread_safe)
     {
       apr_status_t status = apr_thread_mutex_create(&(new_cache->mutex),


Reply via email to