summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Menzel <paulepanter@users.sourceforge.net>2010-03-14 13:27:49 +0000
committerHolger Hans Peter Freyther <zecke@selfish.org>2010-03-15 12:10:14 +0800
commit7d8cd6b4ed5f94411ea4d0a3f901c99c5b9f4364 (patch)
tree9cedde704c018f0e4d613797727a55390de74fe1
parent2d6f65949cb6fbf7c3ee77a9383e54126c84b3b7 (diff)
libmusicbrainz: Include header to fix build with g++ 4.4.
Patch taken from [1] and adapted. [1] http://bugs.musicbrainz.org/ticket/4301 Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
-rw-r--r--recipes/musicbrainz/files/libmusicbrainz-3.0.2-gcc-4.4-fix.patch12
-rw-r--r--recipes/musicbrainz/libmusicbrainz_3.0.2.bb4
2 files changed, 16 insertions, 0 deletions
diff --git a/recipes/musicbrainz/files/libmusicbrainz-3.0.2-gcc-4.4-fix.patch b/recipes/musicbrainz/files/libmusicbrainz-3.0.2-gcc-4.4-fix.patch
new file mode 100644
index 0000000000..9500340479
--- /dev/null
+++ b/recipes/musicbrainz/files/libmusicbrainz-3.0.2-gcc-4.4-fix.patch
@@ -0,0 +1,12 @@
+upstream: http://bugs.musicbrainz.org/ticket/4301
+
+--- libmusicbrainz-3.0.2/src/utils_private.cpp.orig 2008-07-02 08:57:10.000000000 +0200
++++ libmusicbrainz-3.0.2/src/utils_private.cpp 2010-03-14 22:50:02.000000000 +0100
+@@ -20,6 +20,7 @@
+ * $Id: utils_private.cpp 9934 2008-07-02 06:57:10Z luks $
+ */
+
++#include <cstdio>
+ #include <cstdlib>
+ #include <cstring>
+ #include <cstdarg>
diff --git a/recipes/musicbrainz/libmusicbrainz_3.0.2.bb b/recipes/musicbrainz/libmusicbrainz_3.0.2.bb
index bd54419686..78417a3d8a 100644
--- a/recipes/musicbrainz/libmusicbrainz_3.0.2.bb
+++ b/recipes/musicbrainz/libmusicbrainz_3.0.2.bb
@@ -1 +1,5 @@
+PR = "r1"
+
+SRC_URI_append = "file://libmusicbrainz-3.0.2-gcc-4.4-fix.patch;patch=1"
+
require ${PN}.inc