From a7e07aeaac7c75f34193fbcd3d8b98306fc68c2d Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sun, 14 Dec 2025 16:46:09 +0100 Subject: [PATCH] locale: Gate conditional includes behind ifdef Let's make sure clang-tidy doesn't complain on distributions without locale-gen. --- src/locale/localed-util.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.47.3