diff options
author | Yang Tse <yangsita@gmail.com> | 2007-03-12 05:09:25 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-03-12 05:09:25 +0000 |
commit | b66def2b4ca113428f48d4f89f007a36d36bc163 (patch) | |
tree | 090824b1188c06abcc4323325a3cc63cee72ec9c /lib | |
parent | 20b9ab49a75b14b6aad3c5c67d504f1bfd8e6bd5 (diff) |
Emmanuel Dreyfus fixed not being able to find ber_free() in
libldap when available in liblber.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldap.c | 5 |
1 files changed, 5 insertions, 0 deletions
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); |