From: Gunnar Beutner Date: Tue, 24 Jul 2012 11:45:21 +0000 (+0200) Subject: Build fixes for *NIX. X-Git-Tag: v0.0.1~196 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5a80d47ca0ec63fd015e46e0de185c2811d4ef26;p=icinga2 Build fixes for *NIX. --- diff --git a/base/Makefile.am b/base/Makefile.am index 2e0a786b5..8aa1c8230 100644 --- a/base/Makefile.am +++ b/base/Makefile.am @@ -24,6 +24,8 @@ libbase_la_SOURCES = \ ioqueue.h \ logger.cpp \ logger.h \ + netstring.cpp \ + netstring.h \ object.cpp \ object.h \ objectset.cpp \ @@ -71,6 +73,7 @@ libbase_la_CPPFLAGS = \ $(BOOST_CPPFLAGS) \ $(OPENSSL_INCLUDES) \ -I${top_srcdir}/third-party/mmatch \ + -I${top_srcdir}/third-party/cJSON \ -I${top_srcdir}/third-party/popen-noshell libbase_la_LDFLAGS = \ @@ -86,4 +89,5 @@ libbase_la_LIBADD = \ $(BOOST_SIGNALS_LIB) \ $(BOOST_THREAD_LIB) \ ${top_builddir}/third-party/mmatch/libmmatch.la \ + ${top_builddir}/third-party/cJSON/libcJSON.la \ ${top_builddir}/third-party/popen-noshell/libpopen_noshell.la diff --git a/base/application.cpp b/base/application.cpp index 7cc670cc7..6e8f1542e 100644 --- a/base/application.cpp +++ b/base/application.cpp @@ -19,10 +19,6 @@ #include "i2-base.h" -#ifndef _WIN32 -# include -#endif - using namespace icinga; Application::Ptr Application::m_Instance; diff --git a/base/configobject.cpp b/base/configobject.cpp index 6cc07e1d4..f876f293b 100644 --- a/base/configobject.cpp +++ b/base/configobject.cpp @@ -305,10 +305,10 @@ void ConfigObject::RestoreObjects(const string& filename) continue; ConfigObject::Ptr object = boost::make_shared(properties); + object->SetTags(tags); if (!object->GetSource().empty()) { /* restore replicated objects right away */ - object->SetTags(tags); object->Commit(); } else { /* keep non-replicated objects until another config object with diff --git a/base/unix.h b/base/unix.h index 0e790f2b2..e463afe15 100644 --- a/base/unix.h +++ b/base/unix.h @@ -35,6 +35,7 @@ #include #include #include +#include void Sleep(unsigned long milliseconds); diff --git a/jsonrpc/Makefile.am b/jsonrpc/Makefile.am index 3d03875b2..85fcccc4f 100644 --- a/jsonrpc/Makefile.am +++ b/jsonrpc/Makefile.am @@ -12,8 +12,6 @@ libjsonrpc_la_SOURCES = \ jsonrpcserver.h \ messagepart.cpp \ messagepart.h \ - netstring.cpp \ - netstring.h \ requestmessage.cpp \ requestmessage.h \ responsemessage.cpp \ @@ -22,8 +20,7 @@ libjsonrpc_la_SOURCES = \ libjsonrpc_la_CPPFLAGS = \ -DI2_JSONRPC_BUILD \ $(BOOST_CPPFLAGS) \ - -I${top_srcdir}/base \ - -I${top_srcdir}/third-party/cJSON + -I${top_srcdir}/base libjsonrpc_la_LDFLAGS = \ $(BOOST_LDFLAGS) \ @@ -32,5 +29,4 @@ libjsonrpc_la_LDFLAGS = \ @VERSION_INFO@ libjsonrpc_la_LIBADD = \ - ${top_builddir}/base/libbase.la \ - ${top_builddir}/third-party/cJSON/libcJSON.la + ${top_builddir}/base/libbase.la