From cba22897874f79b14601b90fad3f48efd60c9e13 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 23 Jan 2023 10:22:54 +0100 Subject: ympd: update to latest, fix gcc11 issues --- package/ympd/patches/patch-src_mpd_client_c | 11 +++++++++++ package/ympd/patches/patch-src_mpd_client_h | 16 ++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 package/ympd/patches/patch-src_mpd_client_c create mode 100644 package/ympd/patches/patch-src_mpd_client_h (limited to 'package/ympd/patches') diff --git a/package/ympd/patches/patch-src_mpd_client_c b/package/ympd/patches/patch-src_mpd_client_c new file mode 100644 index 000000000..1a537f944 --- /dev/null +++ b/package/ympd/patches/patch-src_mpd_client_c @@ -0,0 +1,11 @@ +--- ympd-612f8fc0b2c47fc89d403e4a044541c6b2b238c8.orig/src/mpd_client.c 2023-01-22 15:17:39.000000000 +0100 ++++ ympd-612f8fc0b2c47fc89d403e4a044541c6b2b238c8/src/mpd_client.c 2023-01-22 15:21:36.423601244 +0100 +@@ -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/package/ympd/patches/patch-src_mpd_client_h b/package/ympd/patches/patch-src_mpd_client_h new file mode 100644 index 000000000..06248b2ea --- /dev/null +++ b/package/ympd/patches/patch-src_mpd_client_h @@ -0,0 +1,16 @@ +--- ympd-612f8fc0b2c47fc89d403e4a044541c6b2b238c8.orig/src/mpd_client.h 2023-01-22 15:17:39.000000000 +0100 ++++ ympd-612f8fc0b2c47fc89d403e4a044541c6b2b238c8/src/mpd_client.h 2023-01-22 15:23:26.726407119 +0100 +@@ -96,9 +96,11 @@ struct t_mpd { + + int song_id; + unsigned queue_version; +-} mpd; ++}; + +-char dirble_api_token[28]; ++extern struct t_mpd mpd; ++ ++extern char dirble_api_token[28]; + + struct t_mpd_client_session { + int song_id; -- cgit v1.2.3