summaryrefslogtreecommitdiffstats
path: root/compiler-rt
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
commitb8dd5078ee233fc60a90a930625ce7ddfc80df45 (patch)
tree2529b833451c8b7eca6b6dc40cb4f45f4ae69b2c /compiler-rt
parent29e86584c63a25d3a9658f4be5ea93468cd347e3 (diff)
downloadbcm5719-llvm-b8dd5078ee233fc60a90a930625ce7ddfc80df45.tar.gz
bcm5719-llvm-b8dd5078ee233fc60a90a930625ce7ddfc80df45.zip
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. llvm-svn: 319532
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cc b/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cc
index 44189c06081..3bfda735307 100644
--- a/compiler-rt/test/asan/TestCases/Linux/swapcontext_annotation.cc
+++ b/compiler-rt/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>
OpenPOWER on IntegriCloud