summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-07-28 00:29:47 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2015-07-28 00:29:47 +0000
commit80414569b8c73bfc5c10a7fd93b2c37c96ddfdae (patch)
tree9673ddb5ebe8f5b60e360fbe4843bebb99a18fe1
parente44524de6524b04534303a1273d43f086ca13d46 (diff)
downloadbcm5719-llvm-80414569b8c73bfc5c10a7fd93b2c37c96ddfdae.tar.gz
bcm5719-llvm-80414569b8c73bfc5c10a7fd93b2c37c96ddfdae.zip
[sanitizer] Fix FreeBSD build of sanitizer_common.
Broken in r243051. llvm-svn: 243359
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc
index 541777190bd..f43a899e4de 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux_libcdep.cc
@@ -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
OpenPOWER on IntegriCloud