[compiler-rt] r338004 - [sanitizer] Include signal.h instead of sys/signal.h
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 25 21:50:33 PDT 2018
Author: maskray
Date: Wed Jul 25 21:50:33 2018
New Revision: 338004
URL: http://llvm.org/viewvc/llvm-project?rev=338004&view=rev
Log:
[sanitizer] Include signal.h instead of sys/signal.h
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=338004&r1=338003&r2=338004&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Wed Jul 25 21:50:33 2018
@@ -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
More information about the llvm-commits
mailing list