[compiler-rt] 5562d9b - Add definitions for symbols in unit test for prctl.

Kevin Athey via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 8 08:56:19 PDT 2022


Author: Kevin Athey
Date: 2022-04-08T08:56:14-07:00
New Revision: 5562d9b3c006f3e376d98ee7b9f3c6c8608ddbee

URL: https://github.com/llvm/llvm-project/commit/5562d9b3c006f3e376d98ee7b9f3c6c8608ddbee
DIFF: https://github.com/llvm/llvm-project/commit/5562d9b3c006f3e376d98ee7b9f3c6c8608ddbee.diff

LOG: Add definitions for symbols in unit test for prctl.

Follow up to: https://reviews.llvm.org/D122851

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/prctl.cpp
index f1d19b3e7e6e0..9b4000acca927 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;


        


More information about the llvm-commits mailing list