Add definitions for symbols in unit test for prctl.
authorKevin Athey <kda@google.com>
Fri, 8 Apr 2022 15:49:25 +0000 (08:49 -0700)
committerKevin Athey <kda@google.com>
Fri, 8 Apr 2022 15:56:14 +0000 (08:56 -0700)
Follow up to: https://reviews.llvm.org/D122851

Differential Revision: https://reviews.llvm.org/D123395

compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp

index f1d19b3..9b4000a 100644 (file)
@@ -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;