From: amosjeffries <> Date: Sun, 24 Feb 2008 18:33:27 +0000 (+0000) Subject: Author: serassio X-Git-Tag: SQUID_3_0_STABLE2~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f23ed3c47b31c85db2c40a636b044bd2923f9ee;p=thirdparty%2Fsquid.git Author: serassio Windows port: restore Windows compatibility changes to edir_ldapext.c lost after last commit. --- 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"