audio/ympd: fix for -fno-common
(forgotten cvs add, bah)
This commit is contained in:
parent
aeca4d3ffa
commit
dc3c014b43
17
audio/ympd/patches/patch-src_mpd_client_c
Normal file
17
audio/ympd/patches/patch-src_mpd_client_c
Normal file
@ -0,0 +1,17 @@
|
||||
$OpenBSD: patch-src_mpd_client_c,v 1.1 2021/02/05 12:19:29 landry Exp $
|
||||
|
||||
fix for -fno-common
|
||||
https://svnweb.freebsd.org/changeset/ports/546834
|
||||
|
||||
Index: src/mpd_client.c
|
||||
--- src/mpd_client.c.orig
|
||||
+++ 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);
|
||||
|
24
audio/ympd/patches/patch-src_mpd_client_h
Normal file
24
audio/ympd/patches/patch-src_mpd_client_h
Normal file
@ -0,0 +1,24 @@
|
||||
$OpenBSD: patch-src_mpd_client_h,v 1.1 2021/02/05 12:19:29 landry Exp $
|
||||
|
||||
fix for -fno-common
|
||||
https://svnweb.freebsd.org/changeset/ports/546834
|
||||
|
||||
Index: src/mpd_client.h
|
||||
--- src/mpd_client.h.orig
|
||||
+++ 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);
|
Loading…
x
Reference in New Issue
Block a user