commit | 3432efa95e93776f0e45ff9729a0e4580b4c8eba | [log] [tgz] |
---|---|---|
author | Dianne Hackborn <hackbod@google.com> | Tue Dec 08 16:38:01 2009 -0800 |
committer | Alex Ray <aray@google.com> | Tue Jul 30 13:56:52 2013 -0700 |
tree | 583a11e00d25dd4467feebc99c4b0f10600799e5 | |
parent | 235af97debd4b75263dfdb9e3be78e50eff2a53a [diff] |
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; }