From be3e318a591be62e8f670b8d78a0a2716eb78510 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 30 Apr 2017 02:46:36 -0500 Subject: Android NDK doesn't have cutils/sched_policy.h so add a probed config symbol. --- lib/portability.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/portability.h b/lib/portability.h index e0dd914e..f1dcc523 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -274,7 +274,7 @@ pid_t xfork(void); //#define strncpy(...) @@strncpyisbadmmkay@@ //#define strncat(...) @@strncatisbadmmkay@@ -#ifdef __ANDROID__ +#if CFG_TOYBOX_ANDROID_SCHEDPOLICY #include #else static inline int get_sched_policy(int tid, void *policy) {return 0;} -- cgit v1.2.3