diff options
author | Jia Tan <jiat0218@gmail.com> | 2024-02-26 23:02:06 +0800 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2024-02-28 18:31:04 +0200 |
commit | a100f9111c8cc7f5b5f0e4a5e8af3de7161c7975 (patch) | |
tree | b4eeeadacc883f3e2a60e06d8e9d960fe3ff8db8 /src/xz/sandbox.c | |
parent | Tests: Add test_microlzma to .gitignore and CMakeLists.txt. (diff) | |
download | xz-a100f9111c8cc7f5b5f0e4a5e8af3de7161c7975.tar.xz |
Build: Fix Linux Landlock feature test in Autotools and CMake builds.
The previous Linux Landlock feature test assumed that having the
linux/landlock.h header file was enough. The new feature tests also
requires that prctl() and the required Landlock system calls are
supported.
Diffstat (limited to 'src/xz/sandbox.c')
-rw-r--r-- | src/xz/sandbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/sandbox.c b/src/xz/sandbox.c index 3b3069c8..5bd22737 100644 --- a/src/xz/sandbox.c +++ b/src/xz/sandbox.c @@ -109,7 +109,7 @@ sandbox_enable_strict_if_allowed(int src_fd lzma_attribute((__unused__)), } -#elif defined(HAVE_LINUX_LANDLOCK_H) +#elif defined(HAVE_LINUX_LANDLOCK) ////////////// // Landlock // |