Skip to content

Commit dc58130

Browse files
liu-song-6l0kod
authored andcommitted
selftests/landlock: Fix build of audit_test
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 <song@kernel.org> Link: https://lore.kernel.org/r/20250605214416.1885878-1-song@kernel.org Fixes: 6b45664 ("selftests/landlock: Add PID tests for audit records") Signed-off-by: Mickaël Salaün <mic@digikod.net>
1 parent 94a7ce2 commit dc58130

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tools/testing/selftests/landlock/audit_test.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#define _GNU_SOURCE
99
#include <errno.h>
10+
#include <fcntl.h>
1011
#include <limits.h>
1112
#include <linux/landlock.h>
1213
#include <pthread.h>

0 commit comments

Comments
 (0)