From 3727bafda4093dffaec93a9f679f997c3df8bf70 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 20 Oct 2018 14:40:20 -0500 Subject: The static NDK fix broke the dynamic NDK build. --- lib/portability.h | 6 +++--- 1 file 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 -- cgit v1.2.3