void-packages/srcpkgs/cryfs/patches/spdlog-include.patch

34 lines
1.0 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
}
}