[compiler-rt] r192696 - tsan: fix Go build

Dmitry Vyukov dvyukov at google.com
Tue Oct 15 06:03:06 PDT 2013


Author: dvyukov
Date: Tue Oct 15 08:03:06 2013
New Revision: 192696

URL: http://llvm.org/viewvc/llvm-project?rev=192696&view=rev
Log:
tsan: fix Go build


Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc?rev=192696&r1=192695&r2=192696&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc Tue Oct 15 08:03:06 2013
@@ -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 {





More information about the llvm-commits mailing list