Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Aug 2020 21:29:23 +0000 (UTC)
From:      Niclas Zeising <zeising@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r546834 - head/audio/ympd/files
Message-ID:  <202008282129.07SLTNwC045428@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: zeising
Date: Fri Aug 28 21:29:23 2020
New Revision: 546834
URL: https://svnweb.freebsd.org/changeset/ports/546834

Log:
  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)

Added:
  head/audio/ympd/files/patch-src_mpd__client.c   (contents, props changed)
  head/audio/ympd/files/patch-src_mpd__client.h   (contents, props changed)

Added: head/audio/ympd/files/patch-src_mpd__client.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/ympd/files/patch-src_mpd__client.c	Fri Aug 28 21:29:23 2020	(r546834)
@@ -0,0 +1,11 @@
+--- src/mpd_client.c.orig	2020-08-28 21:21:59 UTC
++++ 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);
+ 

Added: head/audio/ympd/files/patch-src_mpd__client.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/audio/ympd/files/patch-src_mpd__client.h	Fri Aug 28 21:29:23 2020	(r546834)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008282129.07SLTNwC045428>