summaryrefslogtreecommitdiffstats
path: root/include/util_ldap.h
diff options
context:
space:
mode:
authorStefan Fritsch <sf@apache.org>2011-07-23 19:04:57 +0200
committerStefan Fritsch <sf@apache.org>2011-07-23 19:04:57 +0200
commit47e13744e86d857ea189e020b8a3221c184883f8 (patch)
treed99c1ee43fbb884649e2b07c09b1ca4fbf14bb0d /include/util_ldap.h
parentstart a branch for the revert of the ap_ldap integration (diff)
downloadapache2-47e13744e86d857ea189e020b8a3221c184883f8.tar.xz
apache2-47e13744e86d857ea189e020b8a3221c184883f8.zip
Revert r1143225:
Removed define which is now in ap_ldap.h. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/revert-ap-ldap@1150158 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/util_ldap.h')
-rw-r--r--include/util_ldap.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/util_ldap.h b/include/util_ldap.h
index 45f61d0ef0..d5e5b3d1cc 100644
--- a/include/util_ldap.h
+++ b/include/util_ldap.h
@@ -28,6 +28,12 @@
#include "apr_thread_rwlock.h"
#include "apr_tables.h"
#include "apr_time.h"
+#if AP_HAS_MICROSOFT_LDAPSDK
+#define AP_LDAP_IS_SERVER_DOWN(s) ((s) == LDAP_SERVER_DOWN \
+ ||(s) == LDAP_UNAVAILABLE)
+#else
+#define AP_LDAP_IS_SERVER_DOWN(s) ((s) == LDAP_SERVER_DOWN)
+#endif
#if APR_HAS_SHARED_MEMORY
#include "apr_rmm.h"