lib/util: add syslog.h for ot_journal_print()

If we aren't including sd-journal, we may need this too.
This commit is contained in:
Christian Hergert 2022-02-11 14:31:12 -08:00
parent 5f2ab097d5
commit 5d08032aec

View File

@ -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,}}