diff --git a/liblog/logd_write.c b/liblog/logd_write.c index 3171c78e1..365967633 100644 --- a/liblog/logd_write.c +++ b/liblog/logd_write.c @@ -31,6 +31,10 @@ #include #include +#ifdef __BIONIC__ +#include +#endif + #include #include #include @@ -333,8 +337,7 @@ int __android_log_write(int prio, const char *tag, const char *msg) #if __BIONIC__ if (prio == ANDROID_LOG_FATAL) { - extern void __android_set_abort_message(const char*); - __android_set_abort_message(msg); + android_set_abort_message(msg); } #endif diff --git a/liblog/logd_write_kern.c b/liblog/logd_write_kern.c index 1ed5ecfbf..ae621cb13 100644 --- a/liblog/logd_write_kern.c +++ b/liblog/logd_write_kern.c @@ -28,6 +28,10 @@ #include #include +#ifdef __BIONIC__ +#include +#endif + #include #include #include @@ -177,8 +181,7 @@ int __android_log_write(int prio, const char *tag, const char *msg) #if __BIONIC__ if (prio == ANDROID_LOG_FATAL) { - extern void __android_set_abort_message(const char*); - __android_set_abort_message(msg); + android_set_abort_message(msg); } #endif