summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2008-12-17 14:15:34 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2008-12-17 14:15:34 +0000
commitf105822428ef4d09b7c052f25826766c3bca7f92 (patch)
treea2fcdf94339e6fd0f83b1b348425f5ef70dacc39 /media-plugins/vdr-amarok/files/vdr-amarok-0.0.2-gcc4.3.patch
parentRestrict tests as they die with JDKs higher than 1.4 (diff)
downloadgentoo-2-f105822428ef4d09b7c052f25826766c3bca7f92.tar.gz
gentoo-2-f105822428ef4d09b7c052f25826766c3bca7f92.tar.bz2
gentoo-2-f105822428ef4d09b7c052f25826766c3bca7f92.zip
Fix compilation with gcc-4.3. Bug #251185.
(Portage version: 2.1.6.1/cvs/Linux 2.6.27-gentoo-r1 i686)
Diffstat (limited to 'media-plugins/vdr-amarok/files/vdr-amarok-0.0.2-gcc4.3.patch')
-rw-r--r--media-plugins/vdr-amarok/files/vdr-amarok-0.0.2-gcc4.3.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/media-plugins/vdr-amarok/files/vdr-amarok-0.0.2-gcc4.3.patch b/media-plugins/vdr-amarok/files/vdr-amarok-0.0.2-gcc4.3.patch
new file mode 100644
index 000000000000..313453e24b54
--- /dev/null
+++ b/media-plugins/vdr-amarok/files/vdr-amarok-0.0.2-gcc4.3.patch
@@ -0,0 +1,23 @@
+diff -ru amarok-0.0.2-orig/menuAmarok.cpp amarok-0.0.2/menuAmarok.cpp
+--- amarok-0.0.2-orig/menuAmarok.cpp 2008-12-17 15:06:48.487227787 +0100
++++ amarok-0.0.2/menuAmarok.cpp 2008-12-17 15:07:39.700550051 +0100
+@@ -720,7 +720,7 @@
+
+
+ // unfortunately these playlists are not managed by the amarok DB in v1.4 or older
+-char *AMAROK_STATIC_PLAYLISTS []=
++const char *AMAROK_STATIC_PLAYLISTS []=
+ {
+ "50 Random Tracks",
+ "All Collection",
+diff -ru amarok-0.0.2-orig/Sockets.cpp amarok-0.0.2/Sockets.cpp
+--- amarok-0.0.2-orig/Sockets.cpp 2008-12-17 15:06:48.487227787 +0100
++++ amarok-0.0.2/Sockets.cpp 2008-12-17 15:07:20.357219764 +0100
+@@ -20,6 +20,7 @@
+ #ifndef WIN32
+ // this is for Linux
+ #include <unistd.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <netinet/in.h>