summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorIsmail Donmez <ismail@i10z.com>2017-12-01 11:12:58 +0000
committerIsmail Donmez <ismail@i10z.com>2017-12-01 11:12:58 +0000
commit938b84c82450f523d883f8bafe6e8269673bb49c (patch)
tree84a128806b62b8ff8e0b09137f828fae2289b771 /test
parent1cddf5ff40f0ddde780c4e0af22f87bf9ef12b11 (diff)
Add missing signal.h header:
/havana/work/llvm/projects/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cc:158:20: error: variable has incomplete type 'struct sigaction' struct sigaction act = {}; ^ /havana/work/llvm/projects/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cc:158:10: note: forward declaration of 'sigaction' struct sigaction act = {}; ^ /havana/work/llvm/projects/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cc:160:17: error: use of undeclared identifier 'SIGPROF' if (sigaction(SIGPROF, &act, 0)) { ^ 2 errors generated. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@319532 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/asan/TestCases/Linux/swapcontext_annotation.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/asan/TestCases/Linux/swapcontext_annotation.cc b/test/asan/TestCases/Linux/swapcontext_annotation.cc
index 44189c060..3bfda7353 100644
--- a/test/asan/TestCases/Linux/swapcontext_annotation.cc
+++ b/test/asan/TestCases/Linux/swapcontext_annotation.cc
@@ -16,6 +16,7 @@
#include <pthread.h>
#include <setjmp.h>
+#include <signal.h>
#include <stdio.h>
#include <sys/time.h>
#include <ucontext.h>