diff options
author | Eduardo Chappa <chappa@washington.edu> | 2015-12-07 00:01:53 -0700 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2015-12-07 00:01:53 -0700 |
commit | 29fbd1d5e424fadcf54a338aee8e57a9285fdf4b (patch) | |
tree | 36ae0a67ff11457eb447cffc164ba439abf3d574 /alpine/adrbkcmd.c | |
parent | 99f76eabc88ccea3206013d2e07ef548a5b67ad6 (diff) | |
download | alpine-29fbd1d5e424fadcf54a338aee8e57a9285fdf4b.tar.xz |
* Several changes so that Alpine will build in Windows (change
ldap_unbind_ext to ldap_unbind and add config.wnt.h to git
repository)
Diffstat (limited to 'alpine/adrbkcmd.c')
-rw-r--r-- | alpine/adrbkcmd.c | 8 |
1 files changed, 8 insertions, 0 deletions
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); } |