aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/extra/m_ldap.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-12-14 14:55:06 +0000
committerGravatar Sadie Powell2021-12-14 14:55:06 +0000
commit901e092c21ba4092a22786afa24f40f7fe416e5e (patch)
treeeb162382c5d216ee3039d252f85e170ccb7f438f /src/modules/extra/m_ldap.cpp
parentFix the ldap module on OpenLDAP 2.5. (diff)
downloadinspircd++-901e092c21ba4092a22786afa24f40f7fe416e5e.tar.gz
inspircd++-901e092c21ba4092a22786afa24f40f7fe416e5e.tar.bz2
inspircd++-901e092c21ba4092a22786afa24f40f7fe416e5e.zip
Add a build time check that OpenLDAP is reentrant.
Diffstat (limited to 'src/modules/extra/m_ldap.cpp')
-rw-r--r--src/modules/extra/m_ldap.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/modules/extra/m_ldap.cpp b/src/modules/extra/m_ldap.cpp
index 4b506e18a..8aea323a3 100644
--- a/src/modules/extra/m_ldap.cpp
+++ b/src/modules/extra/m_ldap.cpp
@@ -31,6 +31,10 @@
#include "inspircd.h"
#include "modules/ldap.h"
+#if defined LDAP_API_FEATURE_X_OPENLDAP_REENTRANT && !LDAP_API_FEATURE_X_OPENLDAP_REENTRANT
+# error InspIRCd requires OpenLDAP to be built as reentrant.
+#endif
+
// Ignore OpenLDAP deprecation warnings on OS X Yosemite and newer.
#if defined __APPLE__
# pragma GCC diagnostic push