[llvm-commits] [compiler-rt] r160267 - in /compiler-rt/trunk/lib/tsan/rtl: tsan_platform_linux.cc tsan_platform_mac.cc

Dmitry Vyukov dvyukov at google.com
Mon Jul 16 06:25:47 PDT 2012


Author: dvyukov
Date: Mon Jul 16 08:25:47 2012
New Revision: 160267

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

Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc
    compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.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=160267&r1=160266&r2=160267&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_platform_linux.cc Mon Jul 16 08:25:47 2012
@@ -12,6 +12,8 @@
 // Linux-specific code.
 //===----------------------------------------------------------------------===//
 
+#ifdef __linux__
+
 #include "sanitizer_common/sanitizer_common.h"
 #include "sanitizer_common/sanitizer_libc.h"
 #include "sanitizer_common/sanitizer_procmaps.h"
@@ -232,3 +234,5 @@
 
 
 }  // namespace __tsan
+
+#endif  // #ifdef __linux__

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc?rev=160267&r1=160266&r2=160267&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_platform_mac.cc Mon Jul 16 08:25:47 2012
@@ -12,6 +12,8 @@
 // Linux-specific code.
 //===----------------------------------------------------------------------===//
 
+#ifdef __APPLE__
+
 #include "sanitizer_common/sanitizer_common.h"
 #include "sanitizer_common/sanitizer_libc.h"
 #include "sanitizer_common/sanitizer_procmaps.h"
@@ -106,3 +108,5 @@
 }
 
 }  // namespace __tsan
+
+#endif  // #ifdef __APPLE__





More information about the llvm-commits mailing list