summaryrefslogtreecommitdiffstats
path: root/media-plugins/xmms-mac/files/xmms-mac-ds-gcc44.patch
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-09-01 00:00:32 +0200
commitca9627e70852f6b2e835660df870fe3ab405882d (patch)
tree0a008b1d5b16fa0679a195ed7b5662c7891f591c /media-plugins/xmms-mac/files/xmms-mac-ds-gcc44.patch
downloaddarklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.gz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.bz2
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.tar.xz
darklin4-ca9627e70852f6b2e835660df870fe3ab405882d.zip
Initial import
Diffstat (limited to 'media-plugins/xmms-mac/files/xmms-mac-ds-gcc44.patch')
-rw-r--r--media-plugins/xmms-mac/files/xmms-mac-ds-gcc44.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/media-plugins/xmms-mac/files/xmms-mac-ds-gcc44.patch b/media-plugins/xmms-mac/files/xmms-mac-ds-gcc44.patch
new file mode 100644
index 0000000..66580e8
--- /dev/null
+++ b/media-plugins/xmms-mac/files/xmms-mac-ds-gcc44.patch
@@ -0,0 +1,18 @@
+diff -dPNur xmms-mac-0.3.1-orig/src/mac.cpp xmms-mac-0.3.1/src/mac.cpp
+--- xmms-mac-0.3.1-orig/src/mac.cpp 2005-04-15 11:05:46.000000000 +0200
++++ xmms-mac-0.3.1/src/mac.cpp 2011-02-08 17:24:17.000000000 +0100
+@@ -45,12 +45,12 @@
+
+ static char *get_file_extname(const char *filename)
+ {
+- char *ext = strrchr(filename, '.');
++ const char *ext = strrchr(filename, '.');
+
+ if (ext != NULL)
+ ++ext;
+
+- return ext;
++ return (char*)ext;
+ }
+
+ static char *get_tag_info(CAPETag *tag, wchar_t *fieldname)