summaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authormarkd <markd>2004-08-25 22:06:40 +0000
committermarkd <markd>2004-08-25 22:06:40 +0000
commit9e9fcf06c73defe31063a1319973a30765d41bae (patch)
tree10af0052a795cc56be28a7cb614e002852edb05a /audio
parentc6dbe174714ef3414d9c044ad3cbcbe27f9efb45 (diff)
downloadpkgsrc-9e9fcf06c73defe31063a1319973a30765d41bae.tar.gz
Fix build with gcc2.
Diffstat (limited to 'audio')
-rw-r--r--audio/musicbrainz/distinfo3
-rw-r--r--audio/musicbrainz/patches/patch-aa22
2 files changed, 24 insertions, 1 deletions
diff --git a/audio/musicbrainz/distinfo b/audio/musicbrainz/distinfo
index b827911f257..9ba9b6967d2 100644
--- a/audio/musicbrainz/distinfo
+++ b/audio/musicbrainz/distinfo
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.5 2004/08/21 11:07:35 markd Exp $
+$NetBSD: distinfo,v 1.6 2004/08/25 22:06:40 markd Exp $
SHA1 (libmusicbrainz-2.1.1.tar.gz) = 83fb98534da266eb8c87d0cc14fb5f95a5feb37c
Size (libmusicbrainz-2.1.1.tar.gz) = 528162 bytes
+SHA1 (patch-aa) = 46b43c389f4445b5e7175041131cbdb0d6506b01
diff --git a/audio/musicbrainz/patches/patch-aa b/audio/musicbrainz/patches/patch-aa
new file mode 100644
index 00000000000..d76b465129f
--- /dev/null
+++ b/audio/musicbrainz/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1 2004/08/25 22:06:40 markd Exp $
+
+--- examples/getalbum.c.orig 2004-08-26 09:42:15.000000000 +1200
++++ examples/getalbum.c
+@@ -30,7 +30,7 @@ int main(int argc, char *argv[])
+ {
+ musicbrainz_t o;
+ char error[256], data[256], temp[256], *args[2];
+- int ret, numTracks, trackNum, i, isMultipleArtist = 0;
++ int ret, numDates, numTracks, trackNum, i, isMultipleArtist = 0;
+
+ if (argc < 2)
+ {
+@@ -141,7 +141,7 @@ int main(int argc, char *argv[])
+ if (mb_GetResultData(o, MBE_AlbumGetAmazonCoverartURL, data, 256))
+ printf("CoverartURL: %s\n", data);
+
+- int numDates = mb_GetResultInt(o, MBE_AlbumGetNumReleaseDates);
++ numDates = mb_GetResultInt(o, MBE_AlbumGetNumReleaseDates);
+ for(i = 1; i <= numDates; i++)
+ {
+ // Select the first release date