From b66def2b4ca113428f48d4f89f007a36d36bc163 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 12 Mar 2007 05:09:25 +0000 Subject: Emmanuel Dreyfus fixed not being able to find ber_free() in libldap when available in liblber. --- lib/ldap.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ldap.c b/lib/ldap.c index 991204fd0..61813bb2b 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -200,6 +200,11 @@ static dynafunc DynaGetFunction(const char *name) * compilers! */ *(void**) (&func) = dlsym(libldap, name); } +#ifdef DL_LBER_FILE + if (!func && liblber) { + *(void**) (&func) = dlsym(liblber, name); + } +#endif #elif defined(WIN32) if (libldap) { func = (dynafunc)GetProcAddress((HINSTANCE)libldap, name); -- cgit v1.2.3