mirror of
https://github.com/Icinga/icinga2.git
synced 2026-04-15 22:00:07 -04:00
More Win32 build fixes.
This commit is contained in:
parent
7807b87ff5
commit
330c3710e3
2 changed files with 5 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Reference in a new issue