[sanitizer] Include signal.h instead of sys/signal.h
authorFangrui Song <maskray@google.com>
Thu, 26 Jul 2018 04:50:33 +0000 (04:50 +0000)
committerFangrui Song <maskray@google.com>
Thu, 26 Jul 2018 04:50:33 +0000 (04:50 +0000)
llvm-svn: 338004

compiler-rt/lib/sanitizer_common/sanitizer_linux.cc

index 63866af..96d6c1e 100644 (file)
@@ -53,6 +53,7 @@
 #include <link.h>
 #include <pthread.h>
 #include <sched.h>
+#include <signal.h>
 #include <sys/mman.h>
 #if !SANITIZER_SOLARIS
 #include <sys/ptrace.h>
@@ -66,7 +67,6 @@
 #include <ucontext.h>
 #endif
 #if SANITIZER_OPENBSD
-#include <signal.h>
 #include <sys/futex.h>
 #endif
 #include <unistd.h>
@@ -104,10 +104,6 @@ extern struct ps_strings *__ps_strings;
 #define environ _environ
 #endif
 
-#if !SANITIZER_ANDROID
-#include <sys/signal.h>
-#endif
-
 extern char **environ;
 
 #if SANITIZER_LINUX