commit | c5b138995e68910cfa95f88f12a1c69a102aa997 | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Tue Dec 08 16:38:01 2009 -0800 |
committer | Dianne Hackborn <hackbod@google.com> | Tue Dec 08 16:38:01 2009 -0800 |
tree | d42c2de87872fde784af4f919e40d673b4208a0e | |
parent | 426ab667cacdf319789e1b85f04b2bc6729ae86b [diff] [blame] |
Hopefully fix Windows build
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 @@ lasterr = errno; } +#if defined(HAVE_PTHREADS) if (setpriority(PRIO_PROCESS, tid, pri) < 0) { rc = INVALID_OPERATION; } else { errno = lasterr; } +#endif return rc; }