diff options
author | Christian Hergert <chergert@redhat.com> | 2022-02-11 14:31:12 -0800 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2022-02-11 15:40:19 -0800 |
commit | 5d08032aec50dadb9a4646c96885eaefa4206049 (patch) | |
tree | 91b806588d8b997a850fc8f107390d173702b1cf | |
parent | 5f2ab097d591f8ca1a5a6cf1359e0889eb72ea69 (diff) | |
download | ostree-5d08032aec50dadb9a4646c96885eaefa4206049.tar.gz |
lib/util: add syslog.h for ot_journal_print()
If we aren't including sd-journal, we may need this too.
-rw-r--r-- | src/libotutil/otutil.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <gio/gio.h> #include <string.h> /* Yeah...let's just do that here. */ +#include <syslog.h> #include <libglnx.h> +#ifdef HAVE_LIBSYSTEMD +#include <systemd/sd-journal.h> +#endif + /* https://bugzilla.gnome.org/show_bug.cgi?id=766370 */ #if !GLIB_CHECK_VERSION(2, 49, 3) #define OT_VARIANT_BUILDER_INITIALIZER {{0,}} |