diff options
author | 2009-12-08 16:38:01 -0800 | |
---|---|---|
committer | 2009-12-08 16:38:01 -0800 | |
commit | 06fb2c1c398d91787440978bf358bb9808cc2928 (patch) | |
tree | e7a71ef944a31e1b8fdab4b6351336014cc0383a /libs/utils/Threads.cpp | |
parent | b882b361f123e4ef7870c99e8a9fd9e1be48e396 (diff) |
Hopefully fix Windows build
Diffstat (limited to 'libs/utils/Threads.cpp')
-rw-r--r-- | libs/utils/Threads.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/utils/Threads.cpp b/libs/utils/Threads.cpp index 6ca260374a83..00f9943bfe83 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; } |