From: Daniel Stenberg Date: Tue, 9 May 2000 22:23:55 +0000 (+0000) Subject: Support for systems where RTLD_LAZY_GLOBAL is defined instead of X-Git-Tag: curl-7_1_1~176 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de275780a9804a61644b4b9f0659dd1175c5cfa4;p=thirdparty%2Fcurl.git Support for systems where RTLD_LAZY_GLOBAL is defined instead of RTLD_GLOBAL and RTLD_LAZY separately. --- diff --git a/lib/ldap.c b/lib/ldap.c index 7f0e0251ff..dde15873a2 100644 --- a/lib/ldap.c +++ b/lib/ldap.c @@ -89,7 +89,13 @@ static void DynaOpen(void) * liblber.so automatically, but since it does not we will * handle it here by opening liblber.so as global. */ - dlopen("liblber.so", RTLD_LAZY | RTLD_GLOBAL); + dlopen("liblber.so", +#ifdef RTLD_LAZY_GLOBAL /* It turns out some systems use this: */ + RTLD_LAZY_GLOBAL +#else + RTLD_LAZY | RTLD_GLOBAL +#endif + ); libldap = dlopen("libldap.so", RTLD_LAZY); } #endif