void-packages/srcpkgs/cryfs/patches/spdlog-include.patch
2021-03-17 06:07:03 +07:00

34 lines
1 KiB
Diff

Index: cryfs-0.10.2/src/cpp-utils/logging/Logger.h
===================================================================
--- cryfs-0.10.2.orig/src/cpp-utils/logging/Logger.h
+++ cryfs-0.10.2/src/cpp-utils/logging/Logger.h
@@ -7,6 +7,7 @@
#endif
#include <spdlog/spdlog.h>
+#include <spdlog/sinks/stdout_sinks.h>
#include "../macros.h"
namespace cpputils {
Index: cryfs-0.10.2/src/cpp-utils/logging/logging.h
===================================================================
--- cryfs-0.10.2.orig/src/cpp-utils/logging/logging.h
+++ cryfs-0.10.2/src/cpp-utils/logging/logging.h
@@ -5,6 +5,7 @@
#include "Logger.h"
#include <stdexcept>
#include <spdlog/fmt/ostr.h>
+#include <spdlog/sinks/syslog_sink.h>
#if defined(_MSC_VER)
#include <spdlog/sinks/msvc_sink.h>
@@ -75,7 +76,7 @@ namespace cpputils {
#if defined(_MSC_VER)
return spdlog::create<spdlog::sinks::msvc_sink_mt>(name);
#else
- return spdlog::syslog_logger(name, name, LOG_PID);
+ return spdlog::syslog_logger_mt(name, name, LOG_PID);
#endif
}
}