summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2025-02-18 12:00:22 +0000
committerSadie Powell <sadie@witchery.services>2025-02-18 12:00:22 +0000
commit37f21a2e1eae792aa30a397f64e93a624c39631e (patch)
treef4b14aca5f1592de01e996a335fe79b9dfff40be
parent9f82a960e44c5db3d2e64bdda099823b3078c90d (diff)
Fix building the LDAP module on Windows.
-rw-r--r--modules/extra/ldap.cpp3
1 files changed, 3 insertions, 0 deletions
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<PSTR>((X).c_str())
# define LDAP_SASL_SIMPLE static_cast<PSTR>(0)
# define LDAP_TIME(X) reinterpret_cast<PLDAP_TIMEVAL>(&(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)