locale: Gate conditional includes behind ifdef

Let's make sure clang-tidy doesn't complain on
distributions without locale-gen.
This commit is contained in:
Daan De Meyer
2026-01-02 09:39:32 +01:00
committed by DaanDeMeyer
parent 1dcdb3e439
commit a7e07aeaac
+5 -2
View 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"
@@ -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;