Allow syslog logger on Mac OS X

This commit is contained in:
Sebastian Messmer
2016-02-13 15:50:51 +01:00
parent 0c7beb2e36
commit 7b8d507615
3 changed files with 3 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ inline std::shared_ptr<spdlog::logger> spdlog::stderr_logger_st(const std::strin
return details::registry::instance().create(logger_name, spdlog::sinks::stderr_sink_st::instance());
}
#ifdef __linux__
#if defined(__linux__) || defined(__APPLE__)
// Create syslog logger
inline std::shared_ptr<spdlog::logger> spdlog::syslog_logger(const std::string& logger_name, const std::string& syslog_ident, int syslog_option)
{