summaryrefslogtreecommitdiff
path: root/audio/ympd/files/patch-src_mpd__client.h
diff options
context:
space:
mode:
authorNiclas Zeising <zeising@FreeBSD.org>2020-08-28 21:29:23 +0000
committerNiclas Zeising <zeising@FreeBSD.org>2020-08-28 21:29:23 +0000
commitc45fb95a69d28d06effe6e2493dcdbcd98d17dff (patch)
tree5115994db6612470ca0941af405de8692c915a64 /audio/ympd/files/patch-src_mpd__client.h
parentgames/ezquake: fix build on current and deprecatae (diff)
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)
Notes
Notes: svn path=/head/; revision=546834
Diffstat (limited to 'audio/ympd/files/patch-src_mpd__client.h')
-rw-r--r--audio/ympd/files/patch-src_mpd__client.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/audio/ympd/files/patch-src_mpd__client.h b/audio/ympd/files/patch-src_mpd__client.h
new file mode 100644
index 000000000000..6127a39cba63
--- /dev/null
+++ b/audio/ympd/files/patch-src_mpd__client.h
@@ -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);