From a1a1b3ad018c7a54b82a2b0f4dcbac9691f6ba8b Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 28 Dec 2021 19:16:47 +0000 Subject: Add a build time check that OpenLDAP is reentrant. --- modules/extra/m_ldap.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/extra') diff --git a/modules/extra/m_ldap.cpp b/modules/extra/m_ldap.cpp index a462c46b1..1005d2efe 100644 --- a/modules/extra/m_ldap.cpp +++ b/modules/extra/m_ldap.cpp @@ -16,6 +16,11 @@ #include "modules/ldap.h" #include +#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; -- cgit