summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorrillig <rillig>2007-03-18 21:24:00 +0000
committerrillig <rillig>2007-03-18 21:24:00 +0000
commitd3fb1051fcbf97caeba335a8e2ed54fb82a23775 (patch)
tree03f0925794d06374dc4cb28f8dc9a40edaa30e23 /audio
parentdfc799308f52d906aebc2be40ab8effe120f9378 (diff)
downloadpkgsrc-d3fb1051fcbf97caeba335a8e2ed54fb82a23775.tar.gz
Added a patch for non-gcc compilers, which often don't like
"case 1 ... 255".
Diffstat (limited to 'audio')
-rw-r--r--audio/juke/distinfo3
-rw-r--r--audio/juke/patches/patch-af27
2 files changed, 29 insertions, 1 deletions
diff --git a/audio/juke/distinfo b/audio/juke/distinfo
index de95a12c5fa..d222cd7cc69 100644
--- a/audio/juke/distinfo
+++ b/audio/juke/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2005/02/23 20:39:47 agc Exp $
+$NetBSD: distinfo,v 1.4 2007/03/18 21:24:00 rillig Exp $
SHA1 (juke-0.7.tar.gz) = 04f5e2265743e2ea01a43ea71531845f97c095c3
RMD160 (juke-0.7.tar.gz) = c3a61c32cf1b340723e097620b8f95670a27b65f
@@ -8,3 +8,4 @@ SHA1 (patch-ab) = e4a089f7307e6a029b7e0c6b5b862326e160f6d5
SHA1 (patch-ac) = f1c7233cd88ebdbc8df1a5ec5955b6506fd73634
SHA1 (patch-ad) = 3080321b954c2fa1ae83c6e945214c62f0f34e72
SHA1 (patch-ae) = fe4a70293f762a17503c5782163181e873b52186
+SHA1 (patch-af) = ec5e9602ffcef4b8e01c00a260b65612e1d9f89a
diff --git a/audio/juke/patches/patch-af b/audio/juke/patches/patch-af
new file mode 100644
index 00000000000..5861ddb5c2c
--- /dev/null
+++ b/audio/juke/patches/patch-af
@@ -0,0 +1,27 @@
+$NetBSD: patch-af,v 1.1 2007/03/18 21:24:00 rillig Exp $
+
+Unfortunately, "case 1 ... 255" is not included in ISO C99, though it
+would be very useful in some cases.
+
+--- src/tui.c.orig 2001-02-11 20:28:53.000000000 +0100
++++ src/tui.c 2007-03-18 22:21:46.000000000 +0100
+@@ -688,8 +688,8 @@ static void tui_player_control (struct T
+ player_kill (p);
+
+ if (!p->paused) {
+- switch (player_status (p)) {
+- case 0:
++ int status = player_status(p);
++ if (status == 0) {
+ if (tui->queue->items && p->pid) {
+ queue_skip (tui->queue, tui->dinfo);
+ tui->disp[DM_QUEUE].items = tui->queue->items;
+@@ -699,7 +699,7 @@ static void tui_player_control (struct T
+ if (!tui->queue->items)
+ p->pid = 0;
+ }
+- case 1 ... 255:
++ } else if (1 <= status && status <= 255) {
+ if (tui->queue->items) {
+ item = queue_get_item (tui->queue, 0);
+ p->pid = player_play (tui->cfg, tui->dinfo, item);