summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>2001-10-17 23:34:50 +0000
committerwtc%netscape.com <devnull@localhost>2001-10-17 23:34:50 +0000
commit1f17363d6e918c38d882fde46a9fcc86b549e226 (patch)
treef7ae9d58130756f8f1194b17e06535c42ccbf298
parent90054d88b10bbf4929db38dc569c31ec4c66e5db (diff)
downloadnspr-hg-1f17363d6e918c38d882fde46a9fcc86b549e226.tar.gz
Bugzilla bug 71179: Neutrino needs the RTLD_GROUP flag to load Netscape
plugins. The fix is contributed by timeless@bemail.org.
-rw-r--r--pr/src/linking/prlink.c5
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) {