commit | 06fb2c1c398d91787440978bf358bb9808cc2928 | [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 | e7a71ef944a31e1b8fdab4b6351336014cc0383a | |
parent | b882b361f123e4ef7870c99e8a9fd9e1be48e396 [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; }