mirror of https://github.com/Icinga/icinga2.git
Build fixes.
This commit is contained in:
parent
8346c031fb
commit
b0a372c5f8
|
@ -21,6 +21,7 @@ icinga_LDFLAGS = \
|
||||||
icinga_LDADD = \
|
icinga_LDADD = \
|
||||||
${top_builddir}/base/libbase.la \
|
${top_builddir}/base/libbase.la \
|
||||||
${top_builddir}/icinga/libicinga.la \
|
${top_builddir}/icinga/libicinga.la \
|
||||||
|
-dlopen ${top_builddir}/components/checker/checker.la \
|
||||||
-dlopen ${top_builddir}/components/configfile/configfile.la \
|
-dlopen ${top_builddir}/components/configfile/configfile.la \
|
||||||
-dlopen ${top_builddir}/components/configrpc/configrpc.la \
|
-dlopen ${top_builddir}/components/configrpc/configrpc.la \
|
||||||
-dlopen ${top_builddir}/components/demo/demo.la \
|
-dlopen ${top_builddir}/components/demo/demo.la \
|
||||||
|
|
|
@ -5,6 +5,10 @@ pkglib_LTLIBRARIES = \
|
||||||
libicinga.la
|
libicinga.la
|
||||||
|
|
||||||
libicinga_la_SOURCES = \
|
libicinga_la_SOURCES = \
|
||||||
|
checktask.cpp \
|
||||||
|
checktask.h \
|
||||||
|
configobjectadapter.cpp \
|
||||||
|
configobjectadapter.h \
|
||||||
endpoint.cpp \
|
endpoint.cpp \
|
||||||
endpoint.h \
|
endpoint.h \
|
||||||
endpointmanager.cpp \
|
endpointmanager.cpp \
|
||||||
|
@ -13,9 +17,17 @@ libicinga_la_SOURCES = \
|
||||||
icingaapplication.h \
|
icingaapplication.h \
|
||||||
icingacomponent.cpp \
|
icingacomponent.cpp \
|
||||||
icingacomponent.h \
|
icingacomponent.h \
|
||||||
|
host.cpp \
|
||||||
|
host.h \
|
||||||
i2-icinga.h \
|
i2-icinga.h \
|
||||||
jsonrpcendpoint.cpp \
|
jsonrpcendpoint.cpp \
|
||||||
jsonrpcendpoint.h \
|
jsonrpcendpoint.h \
|
||||||
|
macroprocessor.cpp \
|
||||||
|
macroprocessor.h \
|
||||||
|
nagioschecktask.cpp \
|
||||||
|
nagioschecktask.h \
|
||||||
|
service.cpp \
|
||||||
|
service.h \
|
||||||
virtualendpoint.cpp \
|
virtualendpoint.cpp \
|
||||||
virtualendpoint.h
|
virtualendpoint.h
|
||||||
|
|
||||||
|
|
|
@ -37,7 +37,7 @@ CheckResult NagiosCheckTask::Execute(void) const
|
||||||
|
|
||||||
cr.Output = output.str();
|
cr.Output = output.str();
|
||||||
|
|
||||||
int status, exitstatus;
|
int status, exitcode;
|
||||||
#ifdef _MSC_VER
|
#ifdef _MSC_VER
|
||||||
status = _pclose(fp);
|
status = _pclose(fp);
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
|
@ -48,10 +48,10 @@ CheckResult NagiosCheckTask::Execute(void) const
|
||||||
if (WIFEXITED(status)) {
|
if (WIFEXITED(status)) {
|
||||||
exitcode = WEXITSTATUS(status);
|
exitcode = WEXITSTATUS(status);
|
||||||
#else /* _MSC_VER */
|
#else /* _MSC_VER */
|
||||||
exitstatus = status;
|
exitcode = status;
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
switch (exitstatus) {
|
switch (exitcode) {
|
||||||
case 0:
|
case 0:
|
||||||
cr.State = StateOK;
|
cr.State = StateOK;
|
||||||
break;
|
break;
|
||||||
|
@ -68,7 +68,7 @@ CheckResult NagiosCheckTask::Execute(void) const
|
||||||
#ifndef _MSC_VER
|
#ifndef _MSC_VER
|
||||||
} else if (WIFSIGNALED(status)) {
|
} else if (WIFSIGNALED(status)) {
|
||||||
cr.Output = "Process was terminated by signal " + WTERMSIG(status);
|
cr.Output = "Process was terminated by signal " + WTERMSIG(status);
|
||||||
cr.Status = StateUnknown;
|
cr.State = StateUnknown;
|
||||||
}
|
}
|
||||||
#endif /* _MSC_VER */
|
#endif /* _MSC_VER */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue