Index: posix-threads.cc =================================================================== RCS file: /cvs/gcc/gcc/libjava/posix-threads.cc,v retrieving revision 1.32 diff -c -r1.32 posix-threads.cc *** posix-threads.cc 21 Mar 2002 00:26:44 -0000 1.32 --- posix-threads.cc 27 Feb 2003 23:58:14 -0000 *************** *** 24,29 **** --- 24,32 ---- #include #include #include + #ifdef HAVE_UNISTD_H + #include // To test for _POSIX_THREAD_PRIORITY_SCHEDULING + #endif #include #include *************** *** 318,323 **** --- 321,327 ---- void _Jv_ThreadSetPriority (_Jv_Thread_t *data, jint prio) { + #ifdef _POSIX_THREAD_PRIORITY_SCHEDULING if (data->flags & FLAG_START) { struct sched_param param; *************** *** 325,330 **** --- 329,335 ---- param.sched_priority = prio; pthread_setschedparam (data->thread, SCHED_RR, ¶m); } + #endif } void