diff options
| author | 2021-12-14 14:55:06 +0000 | |
|---|---|---|
| committer | 2021-12-14 14:55:06 +0000 | |
| commit | 901e092c21ba4092a22786afa24f40f7fe416e5e (patch) | |
| tree | eb162382c5d216ee3039d252f85e170ccb7f438f /src/modules/extra/m_ldap.cpp | |
| parent | Fix the ldap module on OpenLDAP 2.5. (diff) | |
| download | inspircd++-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.cpp | 4 |
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 |
