diff options
author | wtc%netscape.com <devnull@localhost> | 2001-10-18 04:23:04 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 2001-10-18 04:23:04 +0000 |
commit | 415b6e283196b3d6ee3433392db0036302e368b9 (patch) | |
tree | ebc4ff8eba3e3e6f2324e92fd318c4d974dc07ab | |
parent | fe55e3eeea18abd166440311249a009f731ca640 (diff) | |
download | nspr-hg-415b6e283196b3d6ee3433392db0036302e368b9.tar.gz |
Bugzilla bug 71179: Neutrino needs the RTLD_GROUP flag to load Netscape
plugins. The fix is contributed by timeless@bemail.org.
Tag: NSPRPUB_PRE_4_2_CLIENT_BRANCH
-rw-r--r-- | pr/src/linking/prlink.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pr/src/linking/prlink.c b/pr/src/linking/prlink.c index 8d3a79ca..ca55a9fb 100644 --- a/pr/src/linking/prlink.c +++ b/pr/src/linking/prlink.c @@ -748,7 +748,12 @@ pr_LoadLibraryByPathname(const char *name, PRIntn flags) #ifdef HAVE_DLL { #if defined(USE_DLFCN) +#ifdef NTO + /* Neutrino needs RTLD_GROUP to load Netscape plugins. (bug 71179) */ + int dl_flags = RTLD_GROUP; +#else int dl_flags = 0; +#endif void *h; if (flags & PR_LD_LAZY) { |