summaryrefslogtreecommitdiff
path: root/audio/xmms-mad/patches
diff options
context:
space:
mode:
authorrh <rh@pkgsrc.org>2002-10-27 07:31:11 +0000
committerrh <rh@pkgsrc.org>2002-10-27 07:31:11 +0000
commit31edad2bfbf4613e3c5dc424307822d0f7acf352 (patch)
tree9c1387fe29eb6f4efcfdffc58fd390a419af41d9 /audio/xmms-mad/patches
parentcca540240af9e502a9ffef70e1145164db64c3c9 (diff)
downloadpkgsrc-31edad2bfbf4613e3c5dc424307822d0f7acf352.tar.gz
Check for pth, not NetBSD, so this package compiles with native threads.
Bump pkgrevision.
Diffstat (limited to 'audio/xmms-mad/patches')
-rw-r--r--audio/xmms-mad/patches/patch-aa12
-rw-r--r--audio/xmms-mad/patches/patch-ab18
2 files changed, 15 insertions, 15 deletions
diff --git a/audio/xmms-mad/patches/patch-aa b/audio/xmms-mad/patches/patch-aa
index f5dead0e936..0d941025ca0 100644
--- a/audio/xmms-mad/patches/patch-aa
+++ b/audio/xmms-mad/patches/patch-aa
@@ -1,13 +1,13 @@
-$NetBSD: patch-aa,v 1.1.1.1 2002/05/26 04:00:51 jmcneill Exp $
+$NetBSD: patch-aa,v 1.2 2002/10/27 07:31:12 rh Exp $
---- src/decoder.c.orig Sat May 25 21:06:58 2002
-+++ src/decoder.c Sat May 25 21:07:05 2002
-@@ -205,6 +205,9 @@
+--- src/decoder.c.orig Fri May 10 00:53:45 2002
++++ src/decoder.c
+@@ -205,6 +205,9 @@ decode (void *arg)
/* main loop */
do
{
-+#ifdef __NetBSD__
-+ pthread_yield_np();
++#ifdef _PTH_PTHREAD_H_
++ sched_yield();
+#endif
if (info->stop)
break;
diff --git a/audio/xmms-mad/patches/patch-ab b/audio/xmms-mad/patches/patch-ab
index 3f5df213bdd..45815ad45c5 100644
--- a/audio/xmms-mad/patches/patch-ab
+++ b/audio/xmms-mad/patches/patch-ab
@@ -1,23 +1,23 @@
-$NetBSD: patch-ab,v 1.1.1.1 2002/05/26 04:00:51 jmcneill Exp $
+$NetBSD: patch-ab,v 1.2 2002/10/27 07:31:12 rh Exp $
---- src/xmms-mad.c.orig Sat May 25 21:07:02 2002
-+++ src/xmms-mad.c Sat May 25 21:07:05 2002
-@@ -83,6 +83,9 @@
+--- src/xmms-mad.c.orig Fri May 10 01:02:33 2002
++++ src/xmms-mad.c
+@@ -83,6 +83,9 @@ xmmsmad_stop ()
printf ("waiting for thread\n");
#endif /* DEBUG */
pthread_join (decode_thread, 0);
-+#ifdef __NetBSD__
-+ pthread_yield_np ();
++#ifdef _PTH_PTHREAD_H_
++ sched_yield ();
+#endif
#ifdef DEBUG
printf ("thread done\n");
#endif /* DEBUG */
-@@ -99,6 +102,9 @@
+@@ -99,6 +102,9 @@ xmmsmad_play_file (char *url)
info.playing = 1;
input_get_info (&info);
pthread_create (&decode_thread, 0, decode, (void *) &info);
-+#ifdef __NetBSD__
-+ pthread_yield_np ();
++#ifdef _PTH_PTHREAD_H_
++ sched_yield ();
+#endif
}
}