diff options
author | Eric Covener <covener@apache.org> | 2011-06-01 17:25:20 +0200 |
---|---|---|
committer | Eric Covener <covener@apache.org> | 2011-06-01 17:25:20 +0200 |
commit | 02bbc3848ee15a6bbf135a52fa0c376d93fdb015 (patch) | |
tree | 7166b6aa09f67c9b261faead1e1d2412f22024d1 /modules/ldap | |
parent | * modules/ssl/ssl_engine_pphrase.c: Fix comment, no functional change. (diff) | |
download | apache2-02bbc3848ee15a6bbf135a52fa0c376d93fdb015.tar.xz apache2-02bbc3848ee15a6bbf135a52fa0c376d93fdb015.zip |
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
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1130186 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ldap')
-rw-r--r-- | modules/ldap/ap_ldap_rebind.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ldap/ap_ldap_rebind.c b/modules/ldap/ap_ldap_rebind.c index 230986ef6b..1c7c05957b 100644 --- a/modules/ldap/ap_ldap_rebind.c +++ b/modules/ldap/ap_ldap_rebind.c @@ -75,11 +75,11 @@ LDAP_DECLARE(apr_status_t) ap_ldap_rebind_init(apr_pool_t *pool) 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); } |