mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-25 22:54:57 +02:00
Fixed dependency problem.
This commit is contained in:
parent
7e1add815b
commit
f890f1d42c
@ -44,6 +44,7 @@ libbase_la_SOURCES = \
|
|||||||
win32.h
|
win32.h
|
||||||
|
|
||||||
libbase_la_LIBADD=$(LIBLTDL)
|
libbase_la_LIBADD=$(LIBLTDL)
|
||||||
|
libbase_la_LDFLAGS=-pthread
|
||||||
|
|
||||||
AM_CFLAGS=$(LTDLINCL)
|
AM_CFLAGS=$(LTDLINCL)
|
||||||
AM_CXXFLAGS=$(LTDLINCL)
|
AM_CXXFLAGS=$(LTDLINCL)
|
||||||
|
@ -4,7 +4,7 @@ using namespace icinga;
|
|||||||
|
|
||||||
IcingaApplication::RefType ConfigRpcComponent::GetIcingaApplication(void)
|
IcingaApplication::RefType ConfigRpcComponent::GetIcingaApplication(void)
|
||||||
{
|
{
|
||||||
return dynamic_pointer_cast<IcingaApplication>(GetApplication());
|
return static_pointer_cast<IcingaApplication>(GetApplication());
|
||||||
}
|
}
|
||||||
|
|
||||||
string ConfigRpcComponent::GetName(void)
|
string ConfigRpcComponent::GetName(void)
|
||||||
@ -16,9 +16,6 @@ void ConfigRpcComponent::Start(void)
|
|||||||
{
|
{
|
||||||
IcingaApplication::RefType icingaApp = GetIcingaApplication();
|
IcingaApplication::RefType icingaApp = GetIcingaApplication();
|
||||||
|
|
||||||
if (icingaApp.get() == NULL)
|
|
||||||
throw exception(/*"Component loaded by incompatible application."*/);
|
|
||||||
|
|
||||||
ConnectionManager::RefType connectionManager = icingaApp->GetConnectionManager();
|
ConnectionManager::RefType connectionManager = icingaApp->GetConnectionManager();
|
||||||
ConfigHive::RefType configHive = icingaApp->GetConfigHive();
|
ConfigHive::RefType configHive = icingaApp->GetConfigHive();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user