From 938b84c82450f523d883f8bafe6e8269673bb49c Mon Sep 17 00:00:00 2001 From: Ismail Donmez Date: Fri, 1 Dec 2017 11:12:58 +0000 Subject: 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 --- test/asan/TestCases/Linux/swapcontext_annotation.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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 #include +#include #include #include #include -- cgit v1.2.3