Updates for NetBSD

This commit is contained in:
Jonathan Naylor
2020-10-05 13:20:18 +01:00
parent 4bd54de1de
commit 9400987403
8 changed files with 108 additions and 56 deletions
+5 -1
View File
@@ -152,7 +152,11 @@ void CNXDNReflector::run()
}
#endif
ret = ::LogInitialise(m_conf.getLogFilePath(), m_conf.getLogFileRoot(), m_conf.getLogFileLevel(), m_conf.getLogDisplayLevel());
#if !defined(_WIN32) && !defined(_WIN64)
ret = ::LogInitialise(m_daemon, m_conf.getLogFilePath(), m_conf.getLogFileRoot(), m_conf.getLogFileLevel(), m_conf.getLogDisplayLevel());
#else
ret = ::LogInitialise(false, m_conf.getLogFilePath(), m_conf.getLogFileRoot(), m_conf.getLogFileLevel(), m_conf.getLogDisplayLevel());
#endif
if (!ret) {
::fprintf(stderr, "NXDNReflector: unable to open the log file\n");
return;