mirror of https://github.com/Icinga/icinga2.git
Fixed *NIX build
This commit is contained in:
parent
390a00e546
commit
04472c5a85
|
@ -50,5 +50,5 @@ libbase_la_SOURCES = \
|
|||
|
||||
libbase_la_LIBADD=$(LIBLTDL)
|
||||
|
||||
AM_CFLAGS=$(LTDLINCL)
|
||||
AM_CXXFLAGS=$(LTDLINCL)
|
||||
libbase_la_CFLAGS=$(LTDLINCL) -DI2_BASE_BUILD
|
||||
libbase_la_CXXFLAGS=$(LTDLINCL) -DI2_BASE_BUILD
|
||||
|
|
|
@ -386,7 +386,7 @@ int application_main(int argc, char **argv, Application::Ptr instance)
|
|||
#ifndef _WIN32
|
||||
struct sigaction sa;
|
||||
memset(&sa, 0, sizeof(sa));
|
||||
sa.sa_handler = sigint_handler;
|
||||
sa.sa_handler = application_sigint_handler;
|
||||
sigaction(SIGINT, &sa, NULL);
|
||||
#endif /* _WIN32 */
|
||||
|
||||
|
|
|
@ -8,7 +8,10 @@ libconfigfilecomponent_la_SOURCES = \
|
|||
configfilecomponent.h \
|
||||
i2-configfilecomponent.h
|
||||
|
||||
libconfigfilecomponent_la_CXXFLAGS = -I${top_srcdir}/base -I${top_srcdir}/jsonrpc
|
||||
libconfigfilecomponent_la_CXXFLAGS = -I${top_srcdir}/base \
|
||||
-I${top_srcdir}/jsonrpc \
|
||||
-I${top_srcdir}/cJSON
|
||||
|
||||
libconfigfilecomponent_la_LDFLAGS = -module -version-info 0:0:0 -no-undefined
|
||||
libconfigfilecomponent_la_LIBADD = ${top_builddir}/base/libbase.la ${top_builddir}/cJSON/libcJSON.la
|
||||
libconfigfilecomponent_la_LIBADD = ${top_builddir}/base/libbase.la \
|
||||
${top_builddir}/cJSON/libcJSON.la
|
|
@ -8,7 +8,10 @@ libconfigrpccomponent_la_SOURCES = \
|
|||
configrpccomponent.h \
|
||||
i2-configrpccomponent.h
|
||||
|
||||
libconfigrpccomponent_la_CXXFLAGS = -I${top_srcdir}/base -I${top_srcdir}/jsonrpc -I${top_srcdir}/icinga
|
||||
libconfigrpccomponent_la_CXXFLAGS = -I${top_srcdir}/base \
|
||||
-I${top_srcdir}/jsonrpc \
|
||||
-I${top_srcdir}/cJSON \
|
||||
-I${top_srcdir}/icinga
|
||||
|
||||
libconfigrpccomponent_la_LDFLAGS = -module -version-info 0:0:0 -no-undefined -pthread
|
||||
libconfigrpccomponent_la_LIBADD = ${top_builddir}/base/libbase.la \
|
||||
|
|
|
@ -18,7 +18,9 @@ icinga_SOURCES = \
|
|||
virtualendpoint.h
|
||||
|
||||
icinga_CXXFLAGS = -I${top_srcdir}/base \
|
||||
-I${top_srcdir}/jsonrpc -I${top_srcdir}
|
||||
-I${top_srcdir}/jsonrpc \
|
||||
-I${top_srcdir}/cJSON \
|
||||
-I${top_srcdir}
|
||||
|
||||
icinga_LDFLAGS = $(top_builddir)/jsonrpc/libjsonrpc.la \
|
||||
$(top_builddir)/base/libbase.la \
|
||||
|
|
|
@ -124,7 +124,7 @@ void EndpointManager::UnregisterEndpoint(Endpoint::Ptr endpoint)
|
|||
void EndpointManager::SendMessage(Endpoint::Ptr source, Endpoint::Ptr destination, JsonRpcMessage::Ptr message)
|
||||
{
|
||||
if (destination) {
|
||||
destination->SendMessageA(source, message);
|
||||
destination->SendMessage(source, message);
|
||||
} else {
|
||||
for (list<Endpoint::Ptr>::iterator i = m_Endpoints.begin(); i != m_Endpoints.end(); i++)
|
||||
{
|
||||
|
|
|
@ -15,4 +15,6 @@ libjsonrpc_la_SOURCES = \
|
|||
netstring.cpp \
|
||||
netstring.h
|
||||
|
||||
libjsonrpc_la_CXXFLAGS = -I${top_srcdir}/base
|
||||
libjsonrpc_la_CFLAGS = -DI2_JSONRPC_BUILD
|
||||
libjsonrpc_la_CXXFLAGS = -DI2_JSONRPC_BUILD -I${top_srcdir}/base \
|
||||
-I${top_srcdir}/cJSON
|
||||
|
|
Loading…
Reference in New Issue