]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
locale: Gate conditional includes behind ifdef
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 14 Dec 2025 15:46:09 +0000 (16:46 +0100)
committerDaanDeMeyer <daan.j.demeyer@gmail.com>
Fri, 2 Jan 2026 08:39:32 +0000 (09:39 +0100)
Let's make sure clang-tidy doesn't complain on
distributions without locale-gen.

src/locale/localed-util.c

index 2842570ddacb289fe27844910714c1fec3c656dd..633be39d25492165f2a25e1b65586b8c273cc026 100644 (file)
@@ -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"
 #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;