audio/ympd: Fix build with -fno-common

Add patches to fix the build of audio/ympd with -fno-common, which is the
default with llvm 11.

MFH:		2020Q3 (implicit, -fno-common fixes, ok by joenum)
This commit is contained in:
Niclas Zeising 2020-08-28 21:29:23 +00:00
parent c9480a17b6
commit c45fb95a69
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546834
2 changed files with 29 additions and 0 deletions

View file

@ -0,0 +1,11 @@
--- src/mpd_client.c.orig 2020-08-28 21:21:59 UTC
+++ src/mpd_client.c
@@ -27,6 +27,8 @@
#include "config.h"
#include "json_encode.h"
+struct t_mpd mpd;
+
/* forward declaration */
static int mpd_notify_callback(struct mg_connection *c, enum mg_event ev);

View file

@ -0,0 +1,18 @@
--- src/mpd_client.h.orig 2016-02-13 21:01:52 UTC
+++ src/mpd_client.h
@@ -92,12 +92,14 @@ struct t_mpd {
int song_id;
unsigned queue_version;
-} mpd;
+};
struct t_mpd_client_session {
int song_id;
unsigned queue_version;
};
+
+extern struct t_mpd mpd;
void mpd_poll(struct mg_server *s);
int callback_mpd(struct mg_connection *c);