]> git.ipfire.org Git - thirdparty/gcc.git/commit - libgcc/gthr-posix.h
gthr-posix.h: Include <unistd.h> for feature tests.
authorJason Thorpe <thorpej@wasabisystems.com>
Tue, 29 Oct 2002 18:23:02 +0000 (18:23 +0000)
committerJason Thorpe <thorpej@gcc.gnu.org>
Tue, 29 Oct 2002 18:23:02 +0000 (18:23 +0000)
commitc95d07f893f510c270e214445f628e20173d62f1
tree1211af4b64b815810c777f183715ab35af995db0
parent3950794d0a5a93bb4af3979c23252df7f34c35bd
gthr-posix.h: Include <unistd.h> for feature tests.

* gthr-posix.h: Include <unistd.h> for feature tests.
(sched_get_priority_max, sched_get_priority_min)
(pthread_getschedparam, pthread_setschedparam): Only use
if _POSIX_THREAD_PRIORITY_SCHEDULING is defined.
(__gthread_objc_thread_set_priority): Don't treat all non-zero
returns from sched_get_priority_max and sched_get_priority_min
as an error.

From-SVN: r58630
gcc/ChangeLog
gcc/gthr-posix.h