From 5d08032aec50dadb9a4646c96885eaefa4206049 Mon Sep 17 00:00:00 2001 From: Christian Hergert Date: Fri, 11 Feb 2022 14:31:12 -0800 Subject: [PATCH] lib/util: add syslog.h for ot_journal_print() If we aren't including sd-journal, we may need this too. --- src/libotutil/otutil.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libotutil/otutil.h b/src/libotutil/otutil.h index 1b543062..4279bc15 100644 --- a/src/libotutil/otutil.h +++ b/src/libotutil/otutil.h @@ -23,8 +23,13 @@ #include #include /* Yeah...let's just do that here. */ +#include #include +#ifdef HAVE_LIBSYSTEMD +#include +#endif + /* https://bugzilla.gnome.org/show_bug.cgi?id=766370 */ #if !GLIB_CHECK_VERSION(2, 49, 3) #define OT_VARIANT_BUILDER_INITIALIZER {{0,}}