summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2000-05-22 19:04:18 +0000
committerDaniel Stenberg <daniel@haxx.se>2000-05-22 19:04:18 +0000
commitdbd864a2a692c80a57279725b7b2c6c2d97baf09 (patch)
tree88a862878d281835c617da84b70218ac10b5a807
parentdc98405114e13d4e9bf4746276470af809b46d26 (diff)
downloadgnurl-dbd864a2a692c80a57279725b7b2c6c2d97baf09.tar.gz
gnurl-dbd864a2a692c80a57279725b7b2c6c2d97baf09.tar.bz2
gnurl-dbd864a2a692c80a57279725b7b2c6c2d97baf09.zip
adjusted to work even without RTLD_GLOBAL defined
-rw-r--r--lib/ldap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ldap.c b/lib/ldap.c
index e38135cc5..3752af590 100644
--- a/lib/ldap.c
+++ b/lib/ldap.c
@@ -93,7 +93,11 @@ static void DynaOpen(void)
#ifdef RTLD_LAZY_GLOBAL /* It turns out some systems use this: */
RTLD_LAZY_GLOBAL
#else
+#ifdef RTLD_GLOBAL
RTLD_LAZY | RTLD_GLOBAL
+#else
+ /* and some systems don't have the RTLD_GLOBAL symbol */
+ RTLD_LAZY
#endif
);
libldap = dlopen("libldap.so", RTLD_LAZY);