This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFA] Protect use of optional features in gthr-posix.h
- From: Richard Henderson <rth at redhat dot com>
- To: Jason R Thorpe <thorpej at wasabisystems dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 29 Oct 2002 10:29:27 -0500
- Subject: Re: [PATCH/RFA] Protect use of optional features in gthr-posix.h
- References: <20021027214427.X19682@dhcp7.wlan.shagadelic.org>
On Sun, Oct 27, 2002 at 09:44:27PM -0800, Jason R Thorpe wrote:
> * 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.
Ok.
r~