apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cove...@apache.org
Subject svn commit: r1130188 - /apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c
Date Wed, 01 Jun 2011 15:27:11 GMT
Author: covener
Date: Wed Jun  1 15:27:11 2011
New Revision: 1130188

URL: http://svn.apache.org/viewvc?rev=1130188&view=rev
Log:
PR51307: Fix ldap_rebind build error when ldap is enabled and APR is built without threads.

Submitted By: Philipp <pippo deo.li>
Reviewed By: covener


Modified:
    apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c

Modified: apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c
URL: http://svn.apache.org/viewvc/apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c?rev=1130188&r1=1130187&r2=1130188&view=diff
==============================================================================
--- apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c (original)
+++ apr/apr-util/branches/1.5.x/ldap/apr_ldap_rebind.c Wed Jun  1 15:27:11 2011
@@ -81,11 +81,11 @@ APU_DECLARE_LDAP(apr_status_t) apr_ldap_
     get_apd
 #endif
 
+#if APR_HAS_THREADS
     /* run after apr_thread_mutex_create cleanup */
     apr_pool_cleanup_register(pool, &apr_ldap_xref_lock, apr_ldap_pool_cleanup_set_null,
                               apr_pool_cleanup_null);
 
-#if APR_HAS_THREADS
     if (apr_ldap_xref_lock == NULL) {
         retcode = apr_thread_mutex_create(&apr_ldap_xref_lock, APR_THREAD_MUTEX_DEFAULT,
pool);
     }



Mime
View raw message