From 00f05b13dff37ee06d49b96884676477dcbb8dae Mon Sep 17 00:00:00 2001 From: =?utf8?q?St=C3=A9phane=20Graber?= Date: Tue, 14 Oct 2025 20:28:03 -0400 Subject: [PATCH] start: Only include linux/landlock.h when landlock is enabled MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Closes #4591 Signed-off-by: Stéphane Graber --- src/lxc/start.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lxc/start.c b/src/lxc/start.c index b8559bbeb..9311d6145 100644 --- a/src/lxc/start.c +++ b/src/lxc/start.c @@ -6,7 +6,6 @@ #include #include #include -#include #include #include #include @@ -69,6 +68,8 @@ #endif #if HAVE_LANDLOCK_MONITOR +#include + #ifndef landlock_create_ruleset static inline int landlock_create_ruleset(const struct landlock_ruleset_attr *const attr, -- 2.47.3