From: Daan De Meyer Date: Sun, 14 Dec 2025 15:46:09 +0000 (+0100) Subject: locale: Gate conditional includes behind ifdef X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a7e07aeaac7c75f34193fbcd3d8b98306fc68c2d;p=thirdparty%2Fsystemd.git locale: Gate conditional includes behind ifdef Let's make sure clang-tidy doesn't complain on distributions without locale-gen. --- diff --git a/src/locale/localed-util.c b/src/locale/localed-util.c index 2842570ddac..633be39d254 100644 --- a/src/locale/localed-util.c +++ b/src/locale/localed-util.c @@ -6,7 +6,6 @@ #include "sd-bus.h" #include "alloc-util.h" -#include "copy.h" #include "env-file.h" #include "errno-util.h" #include "escape.h" @@ -19,13 +18,17 @@ #include "localed-util.h" #include "log.h" #include "mkdir-label.h" -#include "process-util.h" #include "stat-util.h" #include "string-util.h" #include "strv.h" #include "tmpfile-util.h" #include "xkbcommon-util.h" +#if HAVE_LOCALEGEN +#include "copy.h" +#include "process-util.h" +#endif + int x11_context_verify_and_warn(const X11Context *xc, int log_level, sd_bus_error *error) { int r;