[compiler-rt] r243359 - [sanitizer] Fix FreeBSD build of sanitizer_common.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Mon Jul 27 17:29:48 PDT 2015
Author: eugenis
Date: Mon Jul 27 19:29:47 2015
New Revision: 243359
URL: http://llvm.org/viewvc/llvm-project?rev=243359&view=rev
Log:
[sanitizer] Fix FreeBSD build of sanitizer_common.
Broken in r243051.
Modified:
compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc?rev=243359&r1=243358&r2=243359&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux_libcdep.cc Mon Jul 27 19:29:47 2015
@@ -522,6 +522,7 @@ uptr GetRSS() {
// 64-bit Android targets don't provide the deprecated __android_log_write.
// Starting with the L release, syslog() works and is preferable to
// __android_log_write.
+#if SANITIZER_LINUX
#if SANITIZER_ANDROID && __ANDROID_API__ < 21
static atomic_uint8_t android_log_initialized;
@@ -562,6 +563,7 @@ void WriteToSyslog(const char *buffer) {
} while (q);
InternalFree(copy);
}
+#endif // SANITIZER_LINUX
} // namespace __sanitizer
More information about the llvm-commits
mailing list