summaryrefslogtreecommitdiff
path: root/audio/bmp-mac
diff options
context:
space:
mode:
authorsbd <sbd>2012-06-27 08:33:40 +0000
committersbd <sbd>2012-06-27 08:33:40 +0000
commit43472af0b1fc62c8705c78931cfacca0bd1c2dbd (patch)
tree0f3cb6012035a6237394230922c81538adc6f65e /audio/bmp-mac
parent4efe1f09b7a0fc12785d7b007c50696a18f81d60 (diff)
downloadpkgsrc-43472af0b1fc62c8705c78931cfacca0bd1c2dbd.tar.gz
In src/mac.cpp make get_file_extname() a const function.
Diffstat (limited to 'audio/bmp-mac')
-rw-r--r--audio/bmp-mac/distinfo3
-rw-r--r--audio/bmp-mac/patches/patch-src_mac.cpp18
2 files changed, 20 insertions, 1 deletions
diff --git a/audio/bmp-mac/distinfo b/audio/bmp-mac/distinfo
index a6ff8a82994..d4fbe98a437 100644
--- a/audio/bmp-mac/distinfo
+++ b/audio/bmp-mac/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2009/12/30 13:40:14 joerg Exp $
+$NetBSD: distinfo,v 1.3 2012/06/27 08:33:40 sbd Exp $
SHA1 (bmp-mac-0.1.1.tar.gz) = ca4130cf7c6ca0b3984d5209be8d757210ea1b2a
RMD160 (bmp-mac-0.1.1.tar.gz) = 06bb646030a43b60c2d533cc7e80abbbbe2e31d0
Size (bmp-mac-0.1.1.tar.gz) = 293918 bytes
SHA1 (patch-aa) = 8a6308df232cde13970abf74bc21a4d9f2a0b3d6
+SHA1 (patch-src_mac.cpp) = 269e92d44ea5f2d728230410f7bd439578ad757a
diff --git a/audio/bmp-mac/patches/patch-src_mac.cpp b/audio/bmp-mac/patches/patch-src_mac.cpp
new file mode 100644
index 00000000000..6cb3a26ff74
--- /dev/null
+++ b/audio/bmp-mac/patches/patch-src_mac.cpp
@@ -0,0 +1,18 @@
+$NetBSD: patch-src_mac.cpp,v 1.1 2012/06/27 08:33:40 sbd Exp $
+
+Make get_file_extname() a const function.
+
+--- src/mac.cpp.orig 2005-04-15 09:00:01.000000000 +0000
++++ src/mac.cpp
+@@ -43,9 +43,9 @@ static PlayerInfo *mac_info;
+ extern "C"{
+ #endif
+
+-static char *get_file_extname(const char *filename)
++static const char *get_file_extname(const char *filename)
+ {
+- char *ext = strrchr(filename, '.');
++ const char *ext = strrchr(filename, '.');
+
+ if (ext != NULL)
+ ++ext;