From 37f21a2e1eae792aa30a397f64e93a624c39631e Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 18 Feb 2025 12:00:22 +0000 Subject: [PATCH] Fix building the LDAP module on Windows. --- modules/extra/ldap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/extra/ldap.cpp b/modules/extra/ldap.cpp index 44ed9ed48..ecc48767a 100644 --- a/modules/extra/ldap.cpp +++ b/modules/extra/ldap.cpp @@ -26,6 +26,9 @@ # define LDAP_STR(X) const_cast((X).c_str()) # define LDAP_SASL_SIMPLE static_cast(0) # define LDAP_TIME(X) reinterpret_cast(&(X)) +# define LDAP_VENDOR_VERSION_MAJOR (LDAP_VERSION / 100) +# define LDAP_VENDOR_VERSION_MINOR (LDAP_VERSION / 10 % 10) +# define LDAP_VENDOR_VERSION_PATCH (LDAP_VERSION / 10) # define ldap_first_message ldap_first_entry # define ldap_next_message ldap_next_entry # define ldap_unbind_ext(LDAP, UNUSED1, UNUSED2) ldap_unbind(LDAP)