diff options
Diffstat (limited to 'audio/gdcd/patches/patch-ae')
-rw-r--r-- | audio/gdcd/patches/patch-ae | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/audio/gdcd/patches/patch-ae b/audio/gdcd/patches/patch-ae index 73b7cd72044..ef39ad08d70 100644 --- a/audio/gdcd/patches/patch-ae +++ b/audio/gdcd/patches/patch-ae @@ -1,19 +1,19 @@ -$NetBSD: patch-ae,v 1.1 2001/05/14 17:09:14 rh Exp $ +$NetBSD: patch-ae,v 1.2 2002/10/27 07:21:18 rh Exp $ ---- source/gdcd.c.orig Sun May 6 18:28:44 2001 +--- source/gdcd.c.orig Sun Jan 9 08:13:01 2000 +++ source/gdcd.c @@ -17,6 +17,19 @@ #include "coverart.h" #include "conf.h" +/* -+ * NetBSD uses non-preemptive pth, so we yield the processor periodically ++ * Pth is non-preemptive, so we yield the processor periodically + */ -+#ifdef __NetBSD__ ++#ifdef _PTH_PTHREAD_H_ +gint +pth_nbschedule (gpointer data) +{ -+ pthread_yield_np(); ++ sched_yield(); + return TRUE; +} +#endif @@ -26,7 +26,7 @@ $NetBSD: patch-ae,v 1.1 2001/05/14 17:09:14 rh Exp $ free(confitem); -+#ifdef __NetBSD__ ++#ifdef _PTH_PTHREAD_H_ + gtk_timeout_add (200, pth_nbschedule, NULL); +#endif + |