From 4f23ed3c47b31c85db2c40a636b044bd2923f9ee Mon Sep 17 00:00:00 2001 From: amosjeffries <> Date: Sun, 24 Feb 2008 18:33:27 +0000 Subject: [PATCH] Author: serassio Windows port: restore Windows compatibility changes to edir_ldapext.c lost after last commit. --- helpers/digest_auth/eDirectory/edir_ldapext.c | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/helpers/digest_auth/eDirectory/edir_ldapext.c b/helpers/digest_auth/eDirectory/edir_ldapext.c index 2a7521c04d..3aafb08f65 100644 --- a/helpers/digest_auth/eDirectory/edir_ldapext.c +++ b/helpers/digest_auth/eDirectory/edir_ldapext.c @@ -23,10 +23,31 @@ * */ +#include "digest_common.h" + +#ifdef _SQUID_MSWIN_ /* Native Windows port and MinGW */ + +#define snprintf _snprintf +#include +#include +#include +#ifndef LDAPAPI +#define LDAPAPI __cdecl +#endif +#ifdef LDAP_VERSION3 +#ifndef LDAP_OPT_X_TLS +#define LDAP_OPT_X_TLS 0x6000 +#endif +#define ber_alloc() ber_alloc_t(0) +#endif /* LDAP_VERSION3 */ + +#else + #include #include + +#endif #include -#include #include "edir_ldapext.h" -- 2.47.2