mirror of https://github.com/moparisthebest/curl
Support for systems where RTLD_LAZY_GLOBAL is defined instead of
RTLD_GLOBAL and RTLD_LAZY separately.
This commit is contained in:
parent
b64dd9c13f
commit
de275780a9
|
@ -89,7 +89,13 @@ static void DynaOpen(void)
|
||||||
* liblber.so automatically, but since it does not we will
|
* liblber.so automatically, but since it does not we will
|
||||||
* handle it here by opening liblber.so as global.
|
* 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);
|
libldap = dlopen("libldap.so", RTLD_LAZY);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue