diff options
author | Sadie Powell <sadie@witchery.services> | 2021-12-28 19:16:47 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-12-28 19:20:23 +0000 |
commit | a1a1b3ad018c7a54b82a2b0f4dcbac9691f6ba8b (patch) | |
tree | 4899a35ea8b07a39d1006bcd57e5a18b6718a908 | |
parent | 7a28d81b441e5c29f0e0a988306f7c5988bf20c6 (diff) |
Add a build time check that OpenLDAP is reentrant.
-rw-r--r-- | modules/extra/m_ldap.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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 <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; |