You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2011/06/01 17:25:20 UTC

svn commit: r1130186 - /httpd/httpd/trunk/modules/ldap/ap_ldap_rebind.c

Author: covener
Date: Wed Jun  1 15:25:20 2011
New Revision: 1130186

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

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


Modified:
    httpd/httpd/trunk/modules/ldap/ap_ldap_rebind.c

Modified: httpd/httpd/trunk/modules/ldap/ap_ldap_rebind.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/ldap/ap_ldap_rebind.c?rev=1130186&r1=1130185&r2=1130186&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/ldap/ap_ldap_rebind.c (original)
+++ httpd/httpd/trunk/modules/ldap/ap_ldap_rebind.c Wed Jun  1 15:25:20 2011
@@ -75,11 +75,11 @@ LDAP_DECLARE(apr_status_t) ap_ldap_rebin
     get_apd
 #endif
 
+#if APR_HAS_THREADS
     /* run after apr_thread_mutex_create cleanup */
     apr_pool_cleanup_register(pool, &ap_ldap_xref_lock, ap_ldap_pool_cleanup_set_null, 
                               apr_pool_cleanup_null);
 
-#if APR_HAS_THREADS
     if (ap_ldap_xref_lock == NULL) {
         retcode = apr_thread_mutex_create(&ap_ldap_xref_lock, APR_THREAD_MUTEX_DEFAULT, pool);
     }