summaryrefslogtreecommitdiff
path: root/audio/xcdplayer/patches
diff options
context:
space:
mode:
authordholland <dholland@pkgsrc.org>2011-09-12 06:42:12 +0000
committerdholland <dholland@pkgsrc.org>2011-09-12 06:42:12 +0000
commit760bfd0266abd36a001c302eae0a6bdbe851cfed (patch)
treed1e06ac793e01cb9eacd6764f1175cf6cd1e6780 /audio/xcdplayer/patches
parent9c4602e3d0d5956057f3dba20b1a6d61da5bd9cd (diff)
downloadpkgsrc-760bfd0266abd36a001c302eae0a6bdbe851cfed.tar.gz
Fix mismatched return statements, which clang dislikes
Diffstat (limited to 'audio/xcdplayer/patches')
-rw-r--r--audio/xcdplayer/patches/patch-ah27
1 files changed, 25 insertions, 2 deletions
diff --git a/audio/xcdplayer/patches/patch-ah b/audio/xcdplayer/patches/patch-ah
index 5bbbe22f79f..cbe58e28019 100644
--- a/audio/xcdplayer/patches/patch-ah
+++ b/audio/xcdplayer/patches/patch-ah
@@ -1,6 +1,11 @@
-$NetBSD: patch-ah,v 1.5 2006/08/12 14:51:39 darcy Exp $
+$NetBSD: patch-ah,v 1.6 2011/09/12 06:50:00 dholland Exp $
---- internals.c.orig Tue Jan 12 19:59:45 1993
+- support cdrom access on BSDs
+- get function decls out of function bodies, which gcc dislikes
+- fix mismatched return statements, which clang dislikes
+- ...more (?)
+
+--- internals.c.orig 1993-01-12 18:59:45.000000000 +0000
+++ internals.c
@@ -22,6 +22,9 @@
@@ -28,6 +33,24 @@ $NetBSD: patch-ah,v 1.5 2006/08/12 14:51:39 darcy Exp $
int
cdrom_get_curtime() {
+@@ -46,7 +50,7 @@ cdrom_get_curtime() {
+
+ if (cdrom_open() == -1) {
+ debug_printf(1, "cdrom_get_curtime: error from cdrom_open\n");
+- return;
++ return 0;
+ }
+
+ switch (cdrom_status()) {
+@@ -54,7 +58,7 @@ cdrom_get_curtime() {
+ case CDROM_PLAYING:
+ if (cdrom_get_curmsf(&curmsf) == -1) {
+ debug_printf(1, "get_curtime: error reading location\n");
+- return;
++ return 0;
+ }
+
+ if (((curtrack = cdrom_get_curtrack()) == -1) ||
@@ -76,6 +80,170 @@ cdrom_get_curtime() {
}
}