From 6e223a6802152fc689ecdbf38fb4a410123844c7 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sat, 27 Aug 2022 10:27:01 +0800 Subject: [PATCH] common/Journald: include msg/msg_fmt.h so we can use the formatter defined for `entity_name_t`. in fmtlib v9, it is required to define a specialization for the formatted type even the type has an override of operator<<(). now that we already have a formatter for `entity_name_t`, let's just use it. this change should address the FTBFS when building with fmtlib v9. Signed-off-by: Kefu Chai --- src/common/Journald.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/Journald.cc b/src/common/Journald.cc index e3ae2d358f4..a1321c7eea8 100644 --- a/src/common/Journald.cc +++ b/src/common/Journald.cc @@ -21,6 +21,7 @@ #include "common/LogEntry.h" #include "log/Entry.h" #include "log/SubsystemMap.h" +#include "msg/msg_fmt.h" namespace ceph::logging { -- 2.39.5