diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2013-10-15 13:03:06 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2013-10-15 13:03:06 +0000 |
| commit | a72f6a57e9a1be066cf5496ec699a015a79018dc (patch) | |
| tree | ccb90dfe96add039396474716550ce82c976ac58 | |
| parent | f54835f768bcfdc8b89a6c4030ca605584764c5a (diff) | |
tsan: fix Go build
llvm-svn: 192696
| -rw-r--r-- | compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc index cfac755f443e..906b5dc73be4 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_platform_linux.cc @@ -46,6 +46,14 @@ #include <resolv.h> #include <malloc.h> +#ifdef sa_handler +# undef sa_handler +#endif + +#ifdef sa_sigaction +# undef sa_sigaction +#endif + extern "C" struct mallinfo __libc_mallinfo(); namespace __tsan { |
