aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2018-10-20 14:40:20 -0500
committerRob Landley <rob@landley.net>2018-10-20 14:40:20 -0500
commit3727bafda4093dffaec93a9f679f997c3df8bf70 (patch)
treed04d78cfaa9c5a41375209d845a321cb5b1cc206 /lib
parent8014d31278411e22655aeae47338e95f209e2907 (diff)
downloadtoybox-3727bafda4093dffaec93a9f679f997c3df8bf70.tar.gz
The static NDK fix broke the dynamic NDK build.
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/portability.h b/lib/portability.h
index d851a703..c2b29b62 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -276,10 +276,10 @@ static inline int get_sched_policy(int tid, void *policy) {return 0;}
static inline char *get_sched_policy_name(int policy) {return "unknown";}
#endif
-// The NDK has liblog.so but not liblog.c for static builds, and it's
-// just a stub version anyway.
+// Android NDKv18 has liblog.so but not liblog.c for static builds,
+// stub it out for now.
#ifdef __ANDROID_NDK__
-int __android_log_write(int prio, const char* tag, const char* text) {return 0;}
+#define __android_log_write(a, b, c) (0)
#endif
#ifndef SYSLOG_NAMES