summarylogtreecommitdiffstats
path: root/fix-compile.patch
diff options
context:
space:
mode:
authorTommaso Sardelli2020-07-10 08:30:13 +0200
committerTommaso Sardelli2020-07-10 08:33:36 +0200
commit43115466b4dcf47ff561753b6bb5f1f0fa812fab (patch)
tree280c54f8a1ea39bbf52ac521cdd00c7ea0ca459b /fix-compile.patch
parent5d5570d1949320b5b5d31cb3aa3e2b8aea3a5419 (diff)
downloadaur-ympd.tar.gz
Add patch from PR 191 to fix compile issues
Diffstat (limited to 'fix-compile.patch')
-rw-r--r--fix-compile.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/fix-compile.patch b/fix-compile.patch
new file mode 100644
index 000000000000..e50bf43810a9
--- /dev/null
+++ b/fix-compile.patch
@@ -0,0 +1,27 @@
+diff --git a/src/mpd_client.c b/src/mpd_client.c
+index 7271984..1f086e4 100644
+--- a/src/mpd_client.c
++++ b/src/mpd_client.c
+@@ -29,6 +29,7 @@
+
+ /* forward declaration */
+ static int mpd_notify_callback(struct mg_connection *c, enum mg_event ev);
++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 dd78af9..386a31d 100644
+--- a/src/mpd_client.h
++++ b/src/mpd_client.h
+@@ -92,7 +92,9 @@ struct t_mpd {
+
+ int song_id;
+ unsigned queue_version;
+-} mpd;
++};
++
++extern struct t_mpd mpd;
+
+ struct t_mpd_client_session {
+ int song_id;