Fix non-systemd build
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.
Signed-off-by Raphael Mader <[email protected]...>
--- src/log/logwriters/journald.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
src/log/logwriters/journald.cpp +2 -2
@@ -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