diff options
author | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-08 18:05:58 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2009-12-08 18:05:58 -0800 |
commit | 80240139e39795c1176cf0ab7ab32986aa681422 (patch) | |
tree | d42c2de87872fde784af4f919e40d673b4208a0e /libs/utils | |
parent | efc49294a61a1389d827b8a1e6bfd6997026c814 (diff) | |
parent | c5b138995e68910cfa95f88f12a1c69a102aa997 (diff) | |
download | frameworks_native-80240139e39795c1176cf0ab7ab32986aa681422.zip frameworks_native-80240139e39795c1176cf0ab7ab32986aa681422.tar.gz frameworks_native-80240139e39795c1176cf0ab7ab32986aa681422.tar.bz2 |
Merge change I06fb2c1c into eclair-mr2
* changes:
Hopefully fix Windows build
Diffstat (limited to 'libs/utils')
-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 6ca2603..00f9943 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; } |