[compiler-rt] r220291 - [Tsan] Fix sigaction_t to match system definition on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Tue Oct 21 06:31:05 PDT 2014
Author: vkutuzov
Date: Tue Oct 21 08:31:05 2014
New Revision: 220291
URL: http://llvm.org/viewvc/llvm-project?rev=220291&view=rev
Log:
[Tsan] Fix sigaction_t to match system definition on FreeBSD
Differential Revision: http://reviews.llvm.org/D5856
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc?rev=220291&r1=220290&r2=220291&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc Tue Oct 21 08:31:05 2014
@@ -110,9 +110,14 @@ struct sigaction_t {
sighandler_t sa_handler;
void (*sa_sigaction)(int sig, my_siginfo_t *siginfo, void *uctx);
};
+#if SANITIZER_FREEBSD
+ int sa_flags;
+ __sanitizer_sigset_t sa_mask;
+#else
__sanitizer_sigset_t sa_mask;
int sa_flags;
void (*sa_restorer)();
+#endif
};
const sighandler_t SIG_DFL = (sighandler_t)0;
More information about the llvm-commits
mailing list