summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Pasanen <dan.pasanen@gmail.com>2015-10-29 22:32:22 -0500
committerSteve Kondik <shade@chemlab.org>2015-11-10 11:12:18 -0800
commit91b5dfbc15feb36935b4ab07bb9a2a19dd24bfd1 (patch)
tree33886f358d0c9483724e0e6a154f03842824ef11
parentb042227e4c6edb2e0555704eaf00bcf27f966558 (diff)
downloadsystem_core-91b5dfbc15feb36935b4ab07bb9a2a19dd24bfd1.zip
system_core-91b5dfbc15feb36935b4ab07bb9a2a19dd24bfd1.tar.gz
system_core-91b5dfbc15feb36935b4ab07bb9a2a19dd24bfd1.tar.bz2
liblog: fix building with LOGD disabled
Change-Id: Ief05c7bef25e2d18b94fb0a231aba5db8cea6f84
-rw-r--r--liblog/logd_write_kern.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/liblog/logd_write_kern.c b/liblog/logd_write_kern.c
index 8742b34..bd43238 100644
--- a/liblog/logd_write_kern.c
+++ b/liblog/logd_write_kern.c
@@ -26,7 +26,9 @@
#include <time.h>
#include <unistd.h>
+#ifdef __BIONIC__
#include <android/set_abort_message.h>
+#endif
#include <log/log.h>
#include <log/logd.h>
@@ -167,9 +169,11 @@ int __android_log_buf_write(int bufID, int prio, const char *tag, const char *ms
tag = tmp_tag;
}
+#ifdef __BIONIC__
if (prio == ANDROID_LOG_FATAL) {
android_set_abort_message(msg);
}
+#endif
vec[0].iov_base = (unsigned char *) &prio;
vec[0].iov_len = 1;