From 901e092c21ba4092a22786afa24f40f7fe416e5e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 14 Dec 2021 14:55:06 +0000 Subject: Add a build time check that OpenLDAP is reentrant. --- src/modules/extra/m_ldap.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules/extra/m_ldap.cpp') 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 -- cgit v1.3.1-10-gc9f91