[Tsan] Fix sigaction_t to match system definition on FreeBSD
authorViktor Kutuzov <vkutuzov@accesssoftek.com>
Tue, 21 Oct 2014 13:31:05 +0000 (13:31 +0000)
committerViktor Kutuzov <vkutuzov@accesssoftek.com>
Tue, 21 Oct 2014 13:31:05 +0000 (13:31 +0000)
Differential Revision: http://reviews.llvm.org/D5856

llvm-svn: 220291

compiler-rt/lib/tsan/rtl/tsan_interceptors.cc

index 0fbd775..6b35a56 100644 (file)
@@ -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;