httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s.@apache.org
Subject svn commit: r1150166 - /httpd/httpd/branches/revert-ap-ldap/modules/ldap/ap_ldap_rebind.c
Date Sat, 23 Jul 2011 17:18:15 GMT
Author: sf
Date: Sat Jul 23 17:18:15 2011
New Revision: 1150166

URL: http://svn.apache.org/viewvc?rev=1150166&view=rev
Log:
Revert r1130186:

    PR51307: Fix ldap_rebind build error when ldap is enabled and APR is built without threads.


Modified:
    httpd/httpd/branches/revert-ap-ldap/modules/ldap/ap_ldap_rebind.c

Modified: httpd/httpd/branches/revert-ap-ldap/modules/ldap/ap_ldap_rebind.c
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/revert-ap-ldap/modules/ldap/ap_ldap_rebind.c?rev=1150166&r1=1150165&r2=1150166&view=diff
==============================================================================
--- httpd/httpd/branches/revert-ap-ldap/modules/ldap/ap_ldap_rebind.c (original)
+++ httpd/httpd/branches/revert-ap-ldap/modules/ldap/ap_ldap_rebind.c Sat Jul 23 17:18:15
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);
     }



Mime
View raw message