From 5562d9b3c006f3e376d98ee7b9f3c6c8608ddbee Mon Sep 17 00:00:00 2001 From: Kevin Athey Date: Fri, 8 Apr 2022 08:49:25 -0700 Subject: [PATCH] Add definitions for symbols in unit test for prctl. Follow up to: https://reviews.llvm.org/D122851 Differential Revision: https://reviews.llvm.org/D123395 --- compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp index f1d19b3..9b4000a 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp @@ -5,6 +5,14 @@ #include #include +#ifndef PR_SCHED_CORE +# define PR_SCHED_CORE 62 +#endif + +#ifndef PR_SCHED_CORE_CREATE +# define PR_SCHED_CORE_CREATE 1 +#endif + int main() { int res; -- 2.7.4