From 5562d9b3c006f3e376d98ee7b9f3c6c8608ddbee Mon Sep 17 00:00:00 2001
From: Kevin Athey <kda@google.com>
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
---
 .../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 f1d19b3e7e6e..9b4000acca92 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 <stdint.h>
 #include <sys/prctl.h>
 
+#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;
-- 
GitLab