diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp index 38c4b35a7..5dbcb75b0 100644 --- a/libs/utils/Threads.cpp +++ b/libs/utils/Threads.cpp @@ -369,7 +369,11 @@ int androidSetThreadPriority(pid_t tid, int pri) } int androidGetThreadPriority(pid_t tid) { +#if defined(HAVE_PTHREADS) return getpriority(PRIO_PROCESS, tid); +#else + return ANDROID_PRIORITY_NORMAL; +#endif } int androidGetThreadSchedulingGroup(pid_t tid)