[compiler-rt] r319532 - Add missing signal.h header:

Ismail Donmez via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 03:12:58 PST 2017


Author: ismail
Date: Fri Dec  1 03:12:58 2017
New Revision: 319532

URL: http://llvm.org/viewvc/llvm-project?rev=319532&view=rev
Log:
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.


Modified:
    compiler-rt/trunk/test/asan/TestCases/Linux/swapcontext_annotation.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Linux/swapcontext_annotation.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/swapcontext_annotation.cc?rev=319532&r1=319531&r2=319532&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/swapcontext_annotation.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/swapcontext_annotation.cc Fri Dec  1 03:12:58 2017
@@ -16,6 +16,7 @@
 
 #include <pthread.h>
 #include <setjmp.h>
+#include <signal.h>
 #include <stdio.h>
 #include <sys/time.h>
 #include <ucontext.h>




More information about the llvm-commits mailing list