Commit 7fcce77d authored by Steffen Vogel's avatar Steffen Vogel 🎅🏼
Browse files

log: add preproc #if/#else to handle ABI incompatabilities in spdlog

parent 9de23e97
......@@ -114,8 +114,11 @@ void Log::parse(json_t *cfg)
}
if (syslog) {
#if SPDLOG_VERSION >= 10400
auto sink = std::make_shared<spdlog::sinks::syslog_sink_mt>("villas", LOG_PID, LOG_DAEMON, true);
#else
auto sink = std::make_shared<spdlog::sinks::syslog_sink_mt>("villas", LOG_PID, LOG_DAEMON);
#endif
sinks->add_sink(sink);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment