summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2007-12-07 13:10:20 +0000
committerminfrin <minfrin@13f79535-47bb-0310-9956-ffa450edef68>2007-12-07 13:10:20 +0000
commitcf0e8af92295d7d3f4730a52ff6440d05866549f (patch)
tree98846201968e9b79d57eebd13e3176b6badee25b /include
parent1a0c5689417ad1cfe9fe68c8d7ddd368ebd90366 (diff)
downloadlibapr-util-cf0e8af92295d7d3f4730a52ff6440d05866549f.tar.gz
Make sure the rebind stuff only appears when LDAP is detected.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@602091 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/apr_ldap_rebind.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/apr_ldap_rebind.h b/include/apr_ldap_rebind.h
index 6218f841..942ba353 100644
--- a/include/apr_ldap_rebind.h
+++ b/include/apr_ldap_rebind.h
@@ -28,6 +28,11 @@
#ifndef APU_LDAP_REBIND_H
#define APU_LDAP_REBIND_H
+/*
+ * Handle the case when LDAP is enabled
+ */
+#if APR_HAS_LDAP
+
/**
* APR LDAP initialize rebind lock
*
@@ -76,5 +81,7 @@ APU_DECLARE(apr_status_t) apr_ldap_rebind_add(apr_pool_t *pool,
*/
APU_DECLARE(apr_status_t) apr_ldap_rebind_remove(LDAP *ld);
+#endif /* APR_HAS_LDAP */
+
#endif /* APU_LDAP_REBIND_H */