From 29fbd1d5e424fadcf54a338aee8e57a9285fdf4b Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Mon, 7 Dec 2015 00:01:53 -0700 Subject: * Several changes so that Alpine will build in Windows (change ldap_unbind_ext to ldap_unbind and add config.wnt.h to git repository) --- alpine/adrbkcmd.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'alpine/adrbkcmd.c') diff --git a/alpine/adrbkcmd.c b/alpine/adrbkcmd.c index 2bd8dbdf..b35f6c60 100644 --- a/alpine/adrbkcmd.c +++ b/alpine/adrbkcmd.c @@ -7643,7 +7643,11 @@ url_local_ldap(char *url) snprintf(ebuf, sizeof(ebuf), _("LDAP search failed: %s"), ldap_err2string(ld_err)); ebuf[sizeof(ebuf)-1] = '\0'; q_status_message(SM_ORDER, 3, 5, ebuf); +#ifdef _WINDOWS + ldap_unbind(ld); +#else ldap_unbind_ext(ld, NULL, NULL); +#endif /* _WINDOWS */ } else if(!ps_global->intr_pending){ if(we_cancel){ @@ -7658,7 +7662,11 @@ url_local_ldap(char *url) if(ldap_count_entries(ld, result) == 0){ q_status_message(SM_ORDER, 3, 5, _("No matches found for url")); +#ifdef _WINDOWS + ldap_unbind(ld); +#else ldap_unbind_ext(ld, NULL, NULL); +#endif /* _WINDOWS */ if(result) ldap_msgfree(result); } -- cgit v1.2.3-54-g00ecf