diff options
author | Rob Landley <rob@landley.net> | 2017-04-30 02:46:36 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2017-04-30 02:46:36 -0500 |
commit | be3e318a591be62e8f670b8d78a0a2716eb78510 (patch) | |
tree | f31f810b180b2ad440959b7621b86233393d28ea /lib | |
parent | 333b4d37e23a94392c7610d7a503b3c3ede1d21d (diff) | |
download | toybox-be3e318a591be62e8f670b8d78a0a2716eb78510.tar.gz |
Android NDK doesn't have cutils/sched_policy.h so add a probed config symbol.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/portability.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 <cutils/sched_policy.h> #else static inline int get_sched_policy(int tid, void *policy) {return 0;} |