Explicitly set RTLD_LOCAL, some systems require it - thanks x-x

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@738 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2006-06-26 19:23:51 +00:00
parent 8acae63765
commit 48ba6e4f36
+1 -4
View File
@@ -675,10 +675,7 @@ bool CModules::LoadModule(const CString& sModule, const CString& sArgs, CUser* p
}
unsigned int uDLFlags = RTLD_LAZY;
if (!pUser) {
uDLFlags |= RTLD_GLOBAL;
}
uDLFlags |= (pUser) ? RTLD_LOCAL : RTLD_GLOBAL;
void* p = dlopen((sModPath).c_str(), uDLFlags);