diff options
| author | 2009-12-08 16:38:01 -0800 | |
|---|---|---|
| committer | 2009-12-08 16:38:01 -0800 | |
| commit | c5b138995e68910cfa95f88f12a1c69a102aa997 (patch) | |
| tree | d42c2de87872fde784af4f919e40d673b4208a0e /libs/utils/Threads.cpp | |
| parent | 426ab667cacdf319789e1b85f04b2bc6729ae86b (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 6ca260374a..00f9943bfe 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; } |