summaryrefslogtreecommitdiffstats
path: root/liblog/logd_write_kern.c
diff options
context:
space:
mode:
Diffstat (limited to 'liblog/logd_write_kern.c')
-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;