From 3432efa95e93776f0e45ff9729a0e4580b4c8eba Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 8 Dec 2009 16:38:01 -0800 Subject: [PATCH] Hopefully fix Windows build --- libs/utils/Threads.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp index 6ca260374..00f9943bf 100644 --- a/libs/utils/Threads.cpp +++ b/libs/utils/Threads.cpp @@ -309,11 +309,13 @@ int androidSetThreadPriority(pid_t tid, int pri) lasterr = errno; } +#if defined(HAVE_PTHREADS) if (setpriority(PRIO_PROCESS, tid, pri) < 0) { rc = INVALID_OPERATION; } else { errno = lasterr; } +#endif return rc; }