d876dfb6df
This is version 0.9.22nb1.
21 lines
694 B
Text
21 lines
694 B
Text
$NetBSD: patch-ad,v 1.1.1.1 2004/01/26 13:04:47 jmmv Exp $
|
|
|
|
--- src/xitk/panel.c.orig Thu Mar 13 06:28:54 2003
|
|
+++ src/xitk/panel.c
|
|
@@ -1320,14 +1320,14 @@ void panel_init (void) {
|
|
|
|
{
|
|
pthread_attr_t pth_attrs;
|
|
-#if ! defined (__OpenBSD__)
|
|
+#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
|
|
struct sched_param pth_params;
|
|
#endif
|
|
|
|
pthread_attr_init(&pth_attrs);
|
|
|
|
/* this won't work on linux, freebsd 5.0 */
|
|
-#if ! defined (__OpenBSD__)
|
|
+#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING
|
|
pthread_attr_getschedparam(&pth_attrs, &pth_params);
|
|
pth_params.sched_priority = sched_get_priority_min(SCHED_OTHER);
|
|
pthread_attr_setschedparam(&pth_attrs, &pth_params);
|