diff options
-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 69580da5..c2af278b 100644 --- a/lib/portability.h +++ b/lib/portability.h @@ -286,7 +286,7 @@ static inline int __android_log_write(int pri, const char *tag, const char *msg) #endif // libprocessgroup is an Android platform library not included in the NDK. -#if defined(__BIONIC__) && !defined(__ANDROID_NDK__) +#if defined(__BIONIC__) && __has_include(<processgroup/sched_policy.h>) #include <processgroup/sched_policy.h> #else static inline int get_sched_policy(int tid, void *policy) {return 0;} |