]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
adjusted to work even without RTLD_GLOBAL defined
authorDaniel Stenberg <daniel@haxx.se>
Mon, 22 May 2000 19:04:18 +0000 (19:04 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 22 May 2000 19:04:18 +0000 (19:04 +0000)
lib/ldap.c

index e38135cc5761bc4b90b20c16ecfcf2fb4c1d554a..3752af590ba8e923241db29faf943676ef61b136 100644 (file)
@@ -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);