projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
930a687
)
Add definitions for symbols in unit test for prctl.
author
Kevin Athey
<kda@google.com>
Fri, 8 Apr 2022 15:49:25 +0000
(08:49 -0700)
committer
Kevin 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
patch
|
blob
|
history
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
(file)
--- 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;