summaryrefslogtreecommitdiff
path: root/multimedia/xine-ui/patches/patch-ad
blob: d4cfcc4206fc6414987ecfb4180ea8462290341a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-ad,v 1.2 2004/03/28 21:11:35 mycroft Exp $

--- src/xitk/panel.c.orig	2003-11-18 16:48:22.000000000 +0000
+++ src/xitk/panel.c	2004-03-28 20:49:10.000000000 +0000
@@ -1430,14 +1430,14 @@
   
   {
     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);