diff --git a/MMDVMHost.cpp b/MMDVMHost.cpp index 4e54bbd..7740d1b 100644 --- a/MMDVMHost.cpp +++ b/MMDVMHost.cpp @@ -240,7 +240,11 @@ int CMMDVMHost::run() #endif #endif +#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, "MMDVMHost: unable to open the log file\n"); return 1;