diff options
author | Rob Landley <rob@landley.net> | 2018-10-20 14:40:20 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-10-20 14:40:20 -0500 |
commit | 3727bafda4093dffaec93a9f679f997c3df8bf70 (patch) | |
tree | d04d78cfaa9c5a41375209d845a321cb5b1cc206 | |
parent | 8014d31278411e22655aeae47338e95f209e2907 (diff) | |
download | toybox-3727bafda4093dffaec93a9f679f997c3df8bf70.tar.gz |
The static NDK fix broke the dynamic NDK build.
-rw-r--r-- | lib/portability.h | 6 |
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 |