From: Radosław Zarzyński Date: Thu, 18 Aug 2022 11:45:21 +0000 (+0200) Subject: common: fix a FTBFS in Journald.cc when building without systemd X-Git-Tag: v18.0.0~232^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47670%2Fhead;p=ceph.git common: fix a FTBFS in Journald.cc when building without systemd This came from Josh Salomon: ``` /home/jsalomon/src/prim_score/src/common/Journald.h:93:24: error: ‘SubsystemMap’ does not name a type 93 | JournaldLogger(const SubsystemMap *) {} | ^~~~~~~~~~~~ /home/jsalomon/src/prim_score/src/common/Journald.h:94:23: error: ‘Entry’ does not name a type 94 | int log_entry(const Entry &) { | ``` Signed-off-by: Radosław Zarzyński --- diff --git a/src/common/Journald.h b/src/common/Journald.h index 8653b0461b5f..377b1ff9eb64 100644 --- a/src/common/Journald.h +++ b/src/common/Journald.h @@ -13,6 +13,9 @@ struct LogEntry; namespace ceph::logging { +class Entry; +class SubsystemMap; + #ifdef WITH_SYSTEMD namespace detail { @@ -37,9 +40,6 @@ class JournaldClient { }; } -class Entry; -class SubsystemMap; - /** * Logger to send local logs to journald *