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