aboutsummaryrefslogtreecommitdiff
path: root/src/xz/sandbox.h
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2024-02-26 23:02:06 +0800
committerJia Tan <jiat0218@gmail.com>2024-02-26 23:27:44 +0800
commit328c52da8a2bbb81307644efdb58db2c422d9ba7 (patch)
treecaf438280ef7b833814ab606e8696a17c517fec1 /src/xz/sandbox.h
parentTests: Add test_microlzma to .gitignore and CMakeLists.txt. (diff)
downloadxz-328c52da8a2bbb81307644efdb58db2c422d9ba7.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.h')
-rw-r--r--src/xz/sandbox.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xz/sandbox.h b/src/xz/sandbox.h
index f41b4725..98b9862a 100644
--- a/src/xz/sandbox.h
+++ b/src/xz/sandbox.h
@@ -9,7 +9,7 @@
//
///////////////////////////////////////////////////////////////////////////////
-#if defined(HAVE_PLEDGE) || defined(HAVE_LINUX_LANDLOCK_H) \
+#if defined(HAVE_PLEDGE) || defined(HAVE_LINUX_LANDLOCK) \
|| defined(HAVE_CAP_RIGHTS_LIMIT)
# define ENABLE_SANDBOX 1
#endif