Compilation fixes for Windows.

This commit is contained in:
Gunnar Beutner 2012-06-22 23:37:41 +02:00
parent d1f4d9b829
commit 145d85d148
2 changed files with 4 additions and 2 deletions

View File

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

View File

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