Bugzilla bug #18968: check for the case where RTLD_GLOBAL is not defined.
authorwtc%netscape.com
Tue, 16 Nov 1999 21:05:41 +0000
changeset 937 ef78e0727d4acf3939a21967f39d4f4b92198d7a
parent 936 ea207b71882b7ccf5a93b60894dfe5e80c0e2b97
child 938 783bc0f536d6af01f783e64bd439a8989d8c9a5b
push idunknown
push userunknown
push dateunknown
bugs18968
Bugzilla bug #18968: check for the case where RTLD_GLOBAL is not defined.
pr/src/linking/prlink.c
--- a/pr/src/linking/prlink.c
+++ b/pr/src/linking/prlink.c
@@ -38,16 +38,19 @@
 
 #ifdef XP_UNIX
 #ifdef USE_DLFCN
 #include <dlfcn.h>
 /* Define these on systems that don't have them. */
 #ifndef RTLD_LAZY
 #define RTLD_LAZY RTLD_NOW
 #endif
+#ifndef RTLD_GLOBAL
+#define RTLD_GLOBAL 0
+#endif
 #ifndef RTLD_LOCAL
 #define RTLD_LOCAL 0
 #endif
 #elif defined(USE_HPSHL)
 #include <dl.h>
 #elif defined(USE_MACH_DYLD)
 #include <mach-o/dyld.h>
 #endif