Emmanuel Dreyfus fixed not being able to find ber_free() in

libldap when available in liblber.
This commit is contained in:
Yang Tse 2007-03-12 05:09:25 +00:00
parent 20b9ab49a7
commit b66def2b4c
1 changed files with 5 additions and 0 deletions

View File

@ -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);