mirror of https://github.com/Icinga/icinga2.git
parent
8bbb2bfb7b
commit
064407d3c9
|
@ -330,7 +330,7 @@ Utility::LoadExtensionLibrary(const String& library)
|
|||
<< boost::errinfo_file_name(path));
|
||||
}
|
||||
#else /* _WIN32 */
|
||||
void *hModule = dlopen(path.CStr(), RTLD_NOW);
|
||||
void *hModule = dlopen(path.CStr(), RTLD_NOW | RTLD_GLOBAL);
|
||||
|
||||
if (hModule == NULL) {
|
||||
BOOST_THROW_EXCEPTION(std::runtime_error("Could not load library '" + path + "': " + dlerror()));
|
||||
|
|
|
@ -99,8 +99,7 @@ public:
|
|||
|
||||
Object::Ptr object = boost::get<Object::Ptr>(m_Value);
|
||||
|
||||
if (!object)
|
||||
return shared_ptr<T>();
|
||||
ASSERT(object);
|
||||
|
||||
shared_ptr<T> tobject = dynamic_pointer_cast<T>(object);
|
||||
|
||||
|
|
Loading…
Reference in New Issue