mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 15:50:48 -04:00
adjusted to work even without RTLD_GLOBAL defined
This commit is contained in:
parent
dc98405114
commit
dbd864a2a6
@ -93,7 +93,11 @@ static void DynaOpen(void)
|
|||||||
#ifdef RTLD_LAZY_GLOBAL /* It turns out some systems use this: */
|
#ifdef RTLD_LAZY_GLOBAL /* It turns out some systems use this: */
|
||||||
RTLD_LAZY_GLOBAL
|
RTLD_LAZY_GLOBAL
|
||||||
#else
|
#else
|
||||||
|
#ifdef RTLD_GLOBAL
|
||||||
RTLD_LAZY | RTLD_GLOBAL
|
RTLD_LAZY | RTLD_GLOBAL
|
||||||
|
#else
|
||||||
|
/* and some systems don't have the RTLD_GLOBAL symbol */
|
||||||
|
RTLD_LAZY
|
||||||
#endif
|
#endif
|
||||||
);
|
);
|
||||||
libldap = dlopen("libldap.so", RTLD_LAZY);
|
libldap = dlopen("libldap.so", RTLD_LAZY);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user