summaryrefslogtreecommitdiff
path: root/modules/extra/m_ldap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/m_ldap.cpp')
-rw-r--r--modules/extra/m_ldap.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp
index 34f1310c4..1005d2efe 100644
--- a/modules/extra/m_ldap.cpp
+++ b/modules/extra/m_ldap.cpp
@@ -9,13 +9,18 @@
* Based on the original code of Services by Andy Church.
*/
-/* RequiredLibraries: ldap_r,lber */
-/* RequiredWindowsLibraries: libldap_r,liblber */
+/* RequiredLibraries: ldap_r|ldap,lber */
+/* RequiredWindowsLibraries: libldap_r|libldap,liblber */
#include "module.h"
#include "modules/ldap.h"
#include <ldap.h>
+#if defined LDAP_API_FEATURE_X_OPENLDAP_REENTRANT && !LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
+# error Anope requires OpenLDAP to be built as reentrant.
+#endif
+
+
class LDAPService;
static Pipe *me;