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 = \
|
||||
${top_builddir}/base/libbase.la \
|
||||
${top_builddir}/icinga/libicinga.la \
|
||||
-dlopen ${top_builddir}/components/checker/checker.la \
|
||||
-dlopen ${top_builddir}/components/configfile/configfile.la \
|
||||
-dlopen ${top_builddir}/components/configrpc/configrpc.la \
|
||||
-dlopen ${top_builddir}/components/demo/demo.la \
|
||||
|
|
|
@ -5,6 +5,10 @@ pkglib_LTLIBRARIES = \
|
|||
libicinga.la
|
||||
|
||||
libicinga_la_SOURCES = \
|
||||
checktask.cpp \
|
||||
checktask.h \
|
||||
configobjectadapter.cpp \
|
||||
configobjectadapter.h \
|
||||
endpoint.cpp \
|
||||
endpoint.h \
|
||||
endpointmanager.cpp \
|
||||
|
@ -13,9 +17,17 @@ libicinga_la_SOURCES = \
|
|||
icingaapplication.h \
|
||||
icingacomponent.cpp \
|
||||
icingacomponent.h \
|
||||
host.cpp \
|
||||
host.h \
|
||||
i2-icinga.h \
|
||||
jsonrpcendpoint.cpp \
|
||||
jsonrpcendpoint.h \
|
||||
macroprocessor.cpp \
|
||||
macroprocessor.h \
|
||||
nagioschecktask.cpp \
|
||||
nagioschecktask.h \
|
||||
service.cpp \
|
||||
service.h \
|
||||
virtualendpoint.cpp \
|
||||
virtualendpoint.h
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ CheckResult NagiosCheckTask::Execute(void) const
|
|||
|
||||
cr.Output = output.str();
|
||||
|
||||
int status, exitstatus;
|
||||
int status, exitcode;
|
||||
#ifdef _MSC_VER
|
||||
status = _pclose(fp);
|
||||
#else /* _MSC_VER */
|
||||
|
@ -48,10 +48,10 @@ CheckResult NagiosCheckTask::Execute(void) const
|
|||
if (WIFEXITED(status)) {
|
||||
exitcode = WEXITSTATUS(status);
|
||||
#else /* _MSC_VER */
|
||||
exitstatus = status;
|
||||
exitcode = status;
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
switch (exitstatus) {
|
||||
switch (exitcode) {
|
||||
case 0:
|
||||
cr.State = StateOK;
|
||||
break;
|
||||
|
@ -68,7 +68,7 @@ CheckResult NagiosCheckTask::Execute(void) const
|
|||
#ifndef _MSC_VER
|
||||
} else if (WIFSIGNALED(status)) {
|
||||
cr.Output = "Process was terminated by signal " + WTERMSIG(status);
|
||||
cr.Status = StateUnknown;
|
||||
cr.State = StateUnknown;
|
||||
}
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
|
|
Loading…
Reference in New Issue