From 47e13744e86d857ea189e020b8a3221c184883f8 Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sat, 23 Jul 2011 17:04:57 +0000 Subject: 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 --- include/util_ldap.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/util_ldap.h') 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" -- cgit v1.2.3