aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-05-09 22:23:55 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-05-09 22:23:55 +0000
commitde275780a9804a61644b4b9f0659dd1175c5cfa4 (patch)
treecb13fe92aabfe4434bf69aee67c219d44f943713 /lib
parentb64dd9c13fb63324b75561fe564155746bc51b4c (diff)
Support for systems where RTLD_LAZY_GLOBAL is defined instead of
RTLD_GLOBAL and RTLD_LAZY separately.
Diffstat (limited to 'lib')
-rw-r--r--lib/ldap.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index 7f0e0251f..dde15873a 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