selftests/landlock: Fix build of audit_test
Subsystems (3)
PATCH 1/1 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 <[email protected]>
--- tools/testing/selftests/landlock/audit_test.c | 1 + 1 file changed, 1 insertion(+)
tools/testing/selftests/landlock/audit_test.c +1 -0
@@ -7,6 +7,7 @@#define _GNU_SOURCE#include <errno.h> +#include <fcntl.h> #include <limits.h> #include <linux/landlock.h> #include <pthread.h>
Signature · 1 line
2.47.1
Mickaël Salaün
maintainerQuoted 7 lines · Song Liu
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 <[email protected]>
Thanks, I'll merge it in my tree.
Quoted 20 lines
--- tools/testing/selftests/landlock/audit_test.c | 1 + 1 file changed, 1 insertion(+)tools/testing/selftests/landlock/audit_test.c +1
-0@@ -7,6 +7,7 @@#define _GNU_SOURCE#include <errno.h> +#include <fcntl.h> #include <limits.h> #include <linux/landlock.h> #include <pthread.h> Signature · 1 line
2.47.1