Hopefully fix Windows build

This commit is contained in:
Dianne Hackborn
2009-12-08 16:38:01 -08:00
parent b882b361f1
commit 06fb2c1c39

View File

@@ -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;
}