From: Stéphane Graber Date: Wed, 15 Oct 2025 00:28:03 +0000 (-0400) Subject: start: Only include linux/landlock.h when landlock is enabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00f05b13dff37ee06d49b96884676477dcbb8dae;p=thirdparty%2Flxc.git start: Only include linux/landlock.h when landlock is enabled Closes #4591 Signed-off-by: Stéphane Graber --- 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,