aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/portability.h b/lib/portability.h
index bc48deb9..d851a703 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -276,6 +276,12 @@ 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.
+#ifdef __ANDROID_NDK__
+int __android_log_write(int prio, const char* tag, const char* text) {return 0;}
+#endif
+
#ifndef SYSLOG_NAMES
typedef struct {char *c_name; int c_val;} CODE;
extern CODE prioritynames[], facilitynames[];