Build fixes.

This commit is contained in:
Gunnar Beutner 2012-06-14 13:04:22 +02:00
parent 8346c031fb
commit b0a372c5f8
3 changed files with 17 additions and 4 deletions

View File

@ -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 \

View File

@ -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

View File

@ -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 */