From 6400e8dbd96bb45e88e8e6b4e035fe186a5ab743 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Mon, 23 Jun 2025 16:00:21 +0900 Subject: [PATCH] musl: provide several missing definitions for prctl() --- src/include/musl/sys/prctl.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/include/musl/sys/prctl.h diff --git a/src/include/musl/sys/prctl.h b/src/include/musl/sys/prctl.h new file mode 100644 index 0000000000..0473a706cc --- /dev/null +++ b/src/include/musl/sys/prctl.h @@ -0,0 +1,19 @@ +/* SPDX-License-Identifier: LGPL-2.1-or-later */ +#pragma once + +#include_next /* IWYU pragma: export */ + +/* musl's sys/prctl.h does not include linux/prctl.h, and also we cannot include with linux/prctl.h. + * Hence, we need to provide some missing definitions. */ + +#ifndef PR_SET_MDWE +#define PR_SET_MDWE 65 +#endif + +#ifndef PR_MDWE_REFUSE_EXEC_GAIN +#define PR_MDWE_REFUSE_EXEC_GAIN (1UL << 0) +#endif + +#ifndef PR_SET_MEMORY_MERGE +#define PR_SET_MEMORY_MERGE 67 +#endif