mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-31 15:07:43 +00:00
mpd: fix build failures with gcc 4.9.x
As reported by Sagaert Johan in the mailing list mpd 0.18.x fails to build with gcc 4.9.x Patch status: sent upstream. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
5364b22b6c
commit
2a5d7de8df
@ -0,0 +1,26 @@
|
|||||||
|
From 58c9d0c314119a571862b21b2f4e4bf7bbe88a57 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||||
|
Date: Tue, 8 Jul 2014 10:39:12 -0300
|
||||||
|
Subject: [PATCH 1/4] decoder/AudiofileDecoderPlugin: fix build failure due to
|
||||||
|
missing stdio.h include
|
||||||
|
|
||||||
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||||
|
---
|
||||||
|
src/decoder/AudiofileDecoderPlugin.cxx | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/decoder/AudiofileDecoderPlugin.cxx b/src/decoder/AudiofileDecoderPlugin.cxx
|
||||||
|
index ab3557e..92223f2 100644
|
||||||
|
--- a/src/decoder/AudiofileDecoderPlugin.cxx
|
||||||
|
+++ b/src/decoder/AudiofileDecoderPlugin.cxx
|
||||||
|
@@ -31,6 +31,7 @@
|
||||||
|
#include <af_vfs.h>
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
+#include <stdio.h>
|
||||||
|
|
||||||
|
/* pick 1020 since its devisible for 8,16,24, and 32-bit audio */
|
||||||
|
#define CHUNK_SIZE 1020
|
||||||
|
--
|
||||||
|
1.8.5.5
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
From 66f19e78a5b8e7b7aefd807218edafcf55ccee55 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||||
|
Date: Tue, 8 Jul 2014 10:39:38 -0300
|
||||||
|
Subject: [PATCH 2/4] decoder/OpusDecoderPlugin: fix build failure due to
|
||||||
|
missing stdio.h include
|
||||||
|
|
||||||
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||||
|
---
|
||||||
|
src/decoder/OpusDecoderPlugin.cxx | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/decoder/OpusDecoderPlugin.cxx b/src/decoder/OpusDecoderPlugin.cxx
|
||||||
|
index f3d7b34..01ea368 100644
|
||||||
|
--- a/src/decoder/OpusDecoderPlugin.cxx
|
||||||
|
+++ b/src/decoder/OpusDecoderPlugin.cxx
|
||||||
|
@@ -40,6 +40,7 @@
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
|
#include <string.h>
|
||||||
|
+#include <stdio.h>
|
||||||
|
|
||||||
|
static constexpr opus_int32 opus_sample_rate = 48000;
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.5.5
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
From 5f18d45f9583e521e2b2c18b055c4dab7ce126cf Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||||
|
Date: Tue, 8 Jul 2014 10:40:18 -0300
|
||||||
|
Subject: [PATCH 3/4] output/HttpdClient: fix build failure due to missing
|
||||||
|
stdio.h include
|
||||||
|
|
||||||
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||||
|
---
|
||||||
|
src/output/HttpdClient.cxx | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/output/HttpdClient.cxx b/src/output/HttpdClient.cxx
|
||||||
|
index 8e13fda..dc33705 100644
|
||||||
|
--- a/src/output/HttpdClient.cxx
|
||||||
|
+++ b/src/output/HttpdClient.cxx
|
||||||
|
@@ -30,6 +30,7 @@
|
||||||
|
|
||||||
|
#include <assert.h>
|
||||||
|
#include <string.h>
|
||||||
|
+#include <stdio.h>
|
||||||
|
|
||||||
|
HttpdClient::~HttpdClient()
|
||||||
|
{
|
||||||
|
--
|
||||||
|
1.8.5.5
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
From 4181473f66349ceb53f2d4e967f399932b3efa39 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||||
|
Date: Tue, 8 Jul 2014 10:40:50 -0300
|
||||||
|
Subject: [PATCH 4/4] playlist/PlsPlaylistPlugin: fix build failure due to
|
||||||
|
missing stdio.h include
|
||||||
|
|
||||||
|
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
|
||||||
|
---
|
||||||
|
src/playlist/PlsPlaylistPlugin.cxx | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/src/playlist/PlsPlaylistPlugin.cxx b/src/playlist/PlsPlaylistPlugin.cxx
|
||||||
|
index 99be3ad..7b5c882 100644
|
||||||
|
--- a/src/playlist/PlsPlaylistPlugin.cxx
|
||||||
|
+++ b/src/playlist/PlsPlaylistPlugin.cxx
|
||||||
|
@@ -31,6 +31,7 @@
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
|
#include <string>
|
||||||
|
+#include <stdio.h>
|
||||||
|
|
||||||
|
static constexpr Domain pls_domain("pls");
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.5.5
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user