From eb24f1a91bc892a363c5315e0727fec6a17cb69c Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 13 Feb 2023 19:14:04 +0100 Subject: [PATCH] Fix build on non-systemd systems Signed-off-by: Joachim Wiberg --- src/core/api/system/dns_resolver/load.c | 2 ++ src/core/api/system/dns_resolver/store.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/core/api/system/dns_resolver/load.c b/src/core/api/system/dns_resolver/load.c index 30c9f90..cb3a6b8 100644 --- a/src/core/api/system/dns_resolver/load.c +++ b/src/core/api/system/dns_resolver/load.c @@ -19,7 +19,9 @@ #include "core/data/system/dns_resolver/search/list.h" #include "core/data/system/ip_address.h" +#ifdef SYSTEMD #include +#endif #include diff --git a/src/core/api/system/dns_resolver/store.c b/src/core/api/system/dns_resolver/store.c index 72dcf63..544f92e 100644 --- a/src/core/api/system/dns_resolver/store.c +++ b/src/core/api/system/dns_resolver/store.c @@ -13,7 +13,9 @@ #include "store.h" #include "core/common.h" +#ifdef SYSTEMD #include +#endif #include