mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 21:55:03 +02:00
More Win32 build fixes.
This commit is contained in:
parent
7807b87ff5
commit
330c3710e3
@ -427,7 +427,7 @@ void Application::UpdatePidFile(const string& filename)
|
|||||||
"already running. Remove the '" + filename + "' file if "
|
"already running. Remove the '" + filename + "' file if "
|
||||||
"you're certain that this is not the case.");
|
"you're certain that this is not the case.");
|
||||||
}
|
}
|
||||||
#endif
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
pid_t pid = getpid();
|
pid_t pid = getpid();
|
||||||
|
@ -251,7 +251,11 @@ void IcingaApplication::NewLogHandler(const ConfigObject::Ptr& object)
|
|||||||
severity = Logger::StringToSeverity(strSeverity);
|
severity = Logger::StringToSeverity(strSeverity);
|
||||||
|
|
||||||
if (type == "syslog") {
|
if (type == "syslog") {
|
||||||
|
#ifndef _WIN32
|
||||||
logger = boost::make_shared<SyslogLogger>(severity);
|
logger = boost::make_shared<SyslogLogger>(severity);
|
||||||
|
#else /* _WIN32 */
|
||||||
|
throw invalid_argument("Syslog is not supported on Windows.");
|
||||||
|
#endif /* _WIN32 */
|
||||||
} else if (type == "file") {
|
} else if (type == "file") {
|
||||||
string path;
|
string path;
|
||||||
if (!object->GetProperty("path", &path))
|
if (!object->GetProperty("path", &path))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user