More Win32 build fixes.

This commit is contained in:
Gunnar Beutner 2012-07-13 15:29:39 +02:00
parent 7807b87ff5
commit 330c3710e3
2 changed files with 5 additions and 1 deletions

View File

@ -427,7 +427,7 @@ void Application::UpdatePidFile(const string& filename)
"already running. Remove the '" + filename + "' file if "
"you're certain that this is not the case.");
}
#endif
#endif /* _WIN32 */
#ifndef _WIN32
pid_t pid = getpid();

View File

@ -251,7 +251,11 @@ void IcingaApplication::NewLogHandler(const ConfigObject::Ptr& object)
severity = Logger::StringToSeverity(strSeverity);
if (type == "syslog") {
#ifndef _WIN32
logger = boost::make_shared<SyslogLogger>(severity);
#else /* _WIN32 */
throw invalid_argument("Syslog is not supported on Windows.");
#endif /* _WIN32 */
} else if (type == "file") {
string path;
if (!object->GetProperty("path", &path))