From 145d85d148dedc70d578697fc4e9789352d95be0 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 22 Jun 2012 23:37:41 +0200 Subject: [PATCH] Compilation fixes for Windows. --- icinga/nagioschecktask.cpp | 4 +++- icinga/service.cpp | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/icinga/nagioschecktask.cpp b/icinga/nagioschecktask.cpp index aa0b5c6a8..c6957c6ae 100644 --- a/icinga/nagioschecktask.cpp +++ b/icinga/nagioschecktask.cpp @@ -1,5 +1,7 @@ #include "i2-icinga.h" -#include "popen_noshell.h" +#ifndef _MSC_VER +# include "popen_noshell.h" +#endif /* _MSC_VER */ using namespace icinga; diff --git a/icinga/service.cpp b/icinga/service.cpp index 28c307ae1..0bd4493c8 100644 --- a/icinga/service.cpp +++ b/icinga/service.cpp @@ -69,7 +69,7 @@ long Service::GetRetryInterval(void) const void Service::SetNextCheck(time_t nextCheck) { - GetConfigObject()->SetProperty("next_check", nextCheck); + GetConfigObject()->SetProperty("next_check", (long)nextCheck); } time_t Service::GetNextCheck(void)