diff options
Diffstat (limited to 'graphics/xine-ui/patches/patch-ac')
-rw-r--r-- | graphics/xine-ui/patches/patch-ac | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/graphics/xine-ui/patches/patch-ac b/graphics/xine-ui/patches/patch-ac new file mode 100644 index 00000000000..e77dd6b2d75 --- /dev/null +++ b/graphics/xine-ui/patches/patch-ac @@ -0,0 +1,37 @@ +$NetBSD: patch-ac,v 1.1.1.1 2003/04/11 11:59:56 rh Exp $ + +--- src/xitk/xine-toolkit/tips.c.orig Tue Mar 4 00:43:48 2003 ++++ src/xitk/xine-toolkit/tips.c +@@ -240,12 +240,12 @@ static void *_tips_thread(void *data) { + /* Create a thread which will destroy the tips window */ + { + pthread_attr_t pth_attrs; +-#if ! defined (__OpenBSD__) ++#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING + struct sched_param pth_params; + #endif + + pthread_attr_init(&pth_attrs); +-#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); +@@ -266,7 +266,7 @@ static void *_tips_thread(void *data) { + */ + void xitk_tips_create(xitk_widget_t *w) { + pthread_attr_t pth_attrs; +-#if ! defined (__OpenBSD__) ++#ifdef _POSIX_THREAD_PRIORITY_SCHEDULING + struct sched_param pth_params; + #endif + tips_private_t *tp; +@@ -283,7 +283,7 @@ void xitk_tips_create(xitk_widget_t *w) + tp->w = w; + pthread_attr_init(&pth_attrs); + +-#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); |