aboutsummaryrefslogtreecommitdiff
path: root/src/xz/sandbox.h
diff options
context:
space:
mode:
authorJia Tan <jiat0218@gmail.com>2024-02-26 23:02:06 +0800
committerLasse Collin <lasse.collin@tukaani.org>2024-02-28 18:31:04 +0200
commita100f9111c8cc7f5b5f0e4a5e8af3de7161c7975 (patch)
treeb4eeeadacc883f3e2a60e06d8e9d960fe3ff8db8 /src/xz/sandbox.h
parentTests: Add test_microlzma to .gitignore and CMakeLists.txt. (diff)
downloadxz-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.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