]> granicus.if.org Git - icinga2/commitdiff
Fixed dependency problem.
authorGunnar Beutner <gunnar.beutner@netways.de>
Mon, 2 Apr 2012 14:25:43 +0000 (16:25 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Mon, 2 Apr 2012 14:26:23 +0000 (16:26 +0200)
base/Makefile.am
configrpccomponent/configrpccomponent.cpp

index c8f50b60281b1b78a3a34506111d11bc0a13a5fb..a9b83c8fbb0789d790368ed75ce5aa426bc009c9 100644 (file)
@@ -44,6 +44,7 @@ libbase_la_SOURCES =  \
        win32.h
 
 libbase_la_LIBADD=$(LIBLTDL)
+libbase_la_LDFLAGS=-pthread
 
 AM_CFLAGS=$(LTDLINCL)
 AM_CXXFLAGS=$(LTDLINCL)
index 1dc68cca8965abea0e34ffae406ba1fe9f1fcd4d..d63bb226aaf6d78932c5bfd8186992b476782c94 100644 (file)
@@ -4,7 +4,7 @@ using namespace icinga;
 
 IcingaApplication::RefType ConfigRpcComponent::GetIcingaApplication(void)
 {
-       return dynamic_pointer_cast<IcingaApplication>(GetApplication());
+       return static_pointer_cast<IcingaApplication>(GetApplication());
 }
 
 string ConfigRpcComponent::GetName(void)
@@ -16,9 +16,6 @@ void ConfigRpcComponent::Start(void)
 {
        IcingaApplication::RefType icingaApp = GetIcingaApplication();
 
-       if (icingaApp.get() == NULL)
-               throw exception(/*"Component loaded by incompatible application."*/);
-
        ConnectionManager::RefType connectionManager = icingaApp->GetConnectionManager();
        ConfigHive::RefType configHive = icingaApp->GetConfigHive();