All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [git commit branch/2020.08.x] package/ympd: fix build with gcc 10
@ 2020-09-29 15:20 Peter Korsgaard
  0 siblings, 0 replies; only message in thread
From: Peter Korsgaard @ 2020-09-29 15:20 UTC (permalink / raw)
  To: buildroot

commit: https://git.buildroot.net/buildroot/commit/?id=27e28fd479741e540b6b52c79a7fc55910a4b4c9
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.08.x

Fixes:
 - http://autobuild.buildroot.org/results/ea4b96ba8d4a398515ed349e8304a656b684f718

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 9a0b2d3738d850cd110707d971c817cb2079c06f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
---
 package/ympd/0002-added-forward-declarations.patch | 43 ++++++++++++++++++++++
 1 file changed, 43 insertions(+)

diff --git a/package/ympd/0002-added-forward-declarations.patch b/package/ympd/0002-added-forward-declarations.patch
new file mode 100644
index 0000000000..90ee1eae68
--- /dev/null
+++ b/package/ympd/0002-added-forward-declarations.patch
@@ -0,0 +1,43 @@
+From 2268e0f0f372a61827b912155a1796490968b3ff Mon Sep 17 00:00:00 2001
+From: SuperBFG7 <daniel@despite.ch>
+Date: Tue, 2 Jun 2020 12:41:52 +0200
+Subject: [PATCH] added forward declarations
+
+
+[Retrieved (and slightly updated to remove update of dirble_api_token)
+from:
+https://github.com/notandy/ympd/pull/191/commits/2268e0f0f372a61827b912155a1796490968b3ff]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ src/mpd_client.c | 2 ++
+ src/mpd_client.h | 6 ++++--
+ 2 files changed, 6 insertions(+), 2 deletions(-)
+
+diff --git a/src/mpd_client.c b/src/mpd_client.c
+index 2911e461..9f003ab0 100644
+--- a/src/mpd_client.c
++++ b/src/mpd_client.c
+@@ -30,6 +30,8 @@
+ 
+ /* forward declaration */
+ static int mpd_notify_callback(struct mg_connection *c, enum mg_event ev);
++char dirble_api_token[28];
++struct t_mpd mpd;
+ 
+ const char * mpd_cmd_strs[] = {
+     MPD_CMDS(GEN_STR)
+diff --git a/src/mpd_client.h b/src/mpd_client.h
+index 447dd563..9342c550 100644
+--- a/src/mpd_client.h
++++ b/src/mpd_client.h
+@@ -96,6 +96,8 @@ struct t_mpd {
+ 
+     int song_id;
+     unsigned queue_version;
+-} mpd;
++};
++
++extern struct t_mpd mpd;
+ 
+ struct t_mpd_client_session {
+     int song_id;

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-09-29 15:20 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-29 15:20 [Buildroot] [git commit branch/2020.08.x] package/ympd: fix build with gcc 10 Peter Korsgaard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.