From b401d2a43cf6ba9b2c8b87a58e8d78099bce828f Mon Sep 17 00:00:00 2001 From: Kevin Athey Date: Fri, 8 Apr 2022 09:44:27 -0700 Subject: [PATCH] Add one more definition for symbols in prctl unit test. one more follow up to: https://reviews.llvm.org/D122851 Differential Revision: https://reviews.llvm.org/D123404 --- compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp index 9b4000a..7c0739c 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp @@ -13,6 +13,10 @@ # define PR_SCHED_CORE_CREATE 1 #endif +#ifndef PR_SCHED_CORE_GET +# define PR_SCHED_CORE_GET 0 +#endif + int main() { int res; -- 2.7.4