Skip to contentSkip to conversation

Fix non-systemd build

PATCH Superseded [email protected]... 1 participant 1 message Sep 17, 2022

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix non-systemd build

From: Raphael Mader <[email protected]...>

When building in a non-systemd environment, #include <systemd/sd-journal.h> causes the build to break.

---
 src/log/logwriters/journald.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/log/logwriters/journald.cpp +2 -2
index f0fc85f..beb06b0 100644
@@ -23,6 +23,8 @@
  * @brief  Implementation of JournaldWriter
  */
 
+#ifdef HAVE_SYSTEMD
+
 #include <sys/uio.h>
 #include <ctype.h>
 #include <string>
@@ -34,8 +36,6 @@
 #include "log/logwriters/journald.hpp"
 
 
-#ifdef HAVE_SYSTEMD
-
 JournaldWriter::JournaldWriter()
     : LogWriter()
 {

--
2.37.3.windows.1