Add SkyOS syslog fix to this branch so merge doesn't clobber it

This commit is contained in:
Brian Cox 2016-04-03 20:54:44 -07:00
parent 0256caa576
commit 943d17ceb8
1 changed files with 2 additions and 0 deletions

View File

@ -97,9 +97,11 @@ void cSyslog::Log(const TCHAR* programName, cSyslog::LogType logType, const TCHA
const char* msg = message;
#endif
#ifndef SKYOS // Handle an oddball OS that has syslog.h but doesn't implement the calls.
openlog(ident, LOG_PID, LOG_USER);
syslog(LOG_NOTICE, "%s", msg);
closelog();
#endif
#elif SUPPORTS_EVENTLOG