Date: Mon, 4 Jan 2021 15:55:09 +0000 (UTC) From: Olivier Cochard <olivier@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r560304 - head/sysutils/lcdproc/files Message-ID: <202101041555.104Ft9oo054363@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: olivier Date: Mon Jan 4 15:55:09 2021 New Revision: 560304 URL: https://svnweb.freebsd.org/changeset/ports/560304 Log: Fix build with -fno-common PR: 249964 Added: head/sysutils/lcdproc/files/patch-clients__lcdproc__iface.c (contents, props changed) head/sysutils/lcdproc/files/patch-clients__lcdproc__iface.h (contents, props changed) Added: head/sysutils/lcdproc/files/patch-clients__lcdproc__iface.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/lcdproc/files/patch-clients__lcdproc__iface.c Mon Jan 4 15:55:09 2021 (r560304) @@ -0,0 +1,10 @@ +--- clients/lcdproc/iface.c.orig 2020-09-28 23:25:01.655900000 +0200 ++++ clients/lcdproc/iface.c 2020-09-28 23:25:27.294816000 +0200 +@@ -37,6 +37,7 @@ + static char unit_label[10] = "B"; /* default unit label is Bytes */ + static int transfer_screen = 0; /* by default, transfer screen is not shown */ + ++IfaceInfo iface[MAX_INTERFACES]; /* interface info */ + + /** Reads and parses configuration file. + * \return 0 on success, -1 on error Added: head/sysutils/lcdproc/files/patch-clients__lcdproc__iface.h ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/lcdproc/files/patch-clients__lcdproc__iface.h Mon Jan 4 15:55:09 2021 (r560304) @@ -0,0 +1,11 @@ +--- clients/lcdproc/iface.h.orig 2020-09-28 23:24:28.536083000 +0200 ++++ clients/lcdproc/iface.h 2020-09-28 23:24:52.494772000 +0200 +@@ -18,7 +18,7 @@ + /** max number of interfaces in multi-interface mode */ + #define MAX_INTERFACES 3 + +-IfaceInfo iface[MAX_INTERFACES]; /* interface info */ ++extern IfaceInfo iface[MAX_INTERFACES]; /* interface info */ + + /** Update screen content */ + int iface_screen(int rep, int display, int *flags_ptr);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101041555.104Ft9oo054363>