summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch')
-rw-r--r--meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch
new file mode 100644
index 000000000..065254ec8
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/streamripper/streamripper/0003-ripstream-fix-compilation.patch
@@ -0,0 +1,42 @@
1From 6d59b60ff5108357ad2c2951a97112e713ee5368 Mon Sep 17 00:00:00 2001
2From: =?UTF-8?q?Andr=C3=A9=20Draszik?= <git@andred.net>
3Date: Thu, 3 Nov 2016 20:53:32 +0000
4Subject: [PATCH 3/3] ripstream: fix compilation
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9| ../../streamripper-1.64.6/lib/ripstream.c: In function 'write_id3v2_frame':
10| ../../streamripper-1.64.6/lib/ripstream.c:717:5: error: unknown type name '__uint32_t'
11| __uint32_t framesize = 0;
12| ^~~~~~~~~~
13
14The already included srtypes.h does the right thing for all
15platforms (I think). It certainly works well here.
16
17Upstream-Status: Inappropriate [no upstream activity for 7+ years]
18Signed-off-by: André Draszik <git@andred.net>
19---
20 lib/ripstream.c | 6 +-----
21 1 file changed, 1 insertion(+), 5 deletions(-)
22
23diff --git a/lib/ripstream.c b/lib/ripstream.c
24index c671e18..7f311c6 100644
25--- a/lib/ripstream.c
26+++ b/lib/ripstream.c
27@@ -713,11 +713,7 @@ write_id3v2_frame(RIP_MANAGER_INFO* rmi, char* tag_name, mchar* data,
28 int rc;
29 char bigbuf[HEADER_SIZE] = "";
30 ID3V2frame id3v2frame;
31-#ifndef WIN32
32- __uint32_t framesize = 0;
33-#else
34- unsigned long int framesize = 0;
35-#endif
36+ uint32_t framesize = 0;
37
38 memset(&id3v2frame, '\000', sizeof(id3v2frame));
39 strncpy(id3v2frame.id, tag_name, 4);
40--
412.10.1
42