From dc58130bc38f09b162aa3b216f8b8f1e0a56127b Mon Sep 17 00:00:00 2001 From: Song Liu Date: Thu, 5 Jun 2025 14:44:16 -0700 Subject: [PATCH] selftests/landlock: Fix build of audit_test MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We are hitting build error on CentOS 9: audit_test.c:232:40: error: ‘O_CLOEXEC’ undeclared (...) Fix this by including fcntl.h. Signed-off-by: Song Liu Link: https://lore.kernel.org/r/20250605214416.1885878-1-song@kernel.org Fixes: 6b4566400a29 ("selftests/landlock: Add PID tests for audit records") Signed-off-by: Mickaël Salaün --- tools/testing/selftests/landlock/audit_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/testing/selftests/landlock/audit_test.c b/tools/testing/selftests/landlock/audit_test.c index cfc571afd0eb8..46d02d49835aa 100644 --- a/tools/testing/selftests/landlock/audit_test.c +++ b/tools/testing/selftests/landlock/audit_test.c @@ -7,6 +7,7 @@ #define _GNU_SOURCE #include +#include #include #include #include -- 2.47.2