summarylogtreecommitdiffstats
path: root/fix-compile.patch
blob: e50bf43810a9a04c67f2de62028ca6ee6e7bb8e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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;