blob: 35634dd9bac68733411aaaade0d17775a5a5488c [file] [log] [blame]
Andrew Geisslerbffdb3e2020-08-21 16:13:29 -05001From 9b07f6a472c24f5e1b65746756764391be0d55e4 Mon Sep 17 00:00:00 2001
2From: Harald Geyer <harald@ccbib.org>
3Date: Mon, 10 Feb 2020 13:15:10 +0100
4Subject: [PATCH] Fix compilation with GCC >= 10.x
5
6Starting with GCC >= 10.x, -fno-common is used as default
7instead of -fcommon. This patch fixes the compilation.
8
9Closes: #148
10
11Upstream-Status: Backport
12Suggested-by: Conrad Kostecki <conrad@kostecki.com>
13Signed-off-by: Harald Geyer <harald@ccbib.org>
14---
15 clients/lcdproc/iface.c | 1 +
16 clients/lcdproc/iface.h | 2 +-
17 2 files changed, 2 insertions(+), 1 deletion(-)
18
19diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c
20index 40e50cb7..1ac355bd 100644
21--- a/clients/lcdproc/iface.c
22+++ b/clients/lcdproc/iface.c
23@@ -32,6 +32,7 @@
24 #define UNSET_INT -1
25 #define UNSET_STR "\01"
26
27+IfaceInfo iface[MAX_INTERFACES];
28
29 static int iface_count = 0; /* number of interfaces */
30 static char unit_label[10] = "B"; /* default unit label is Bytes */
31diff --git a/clients/lcdproc/iface.h b/clients/lcdproc/iface.h
32index cc6dbaaf..c1bd6b5b 100644
33--- a/clients/lcdproc/iface.h
34+++ b/clients/lcdproc/iface.h
35@@ -18,7 +18,7 @@
36 /** max number of interfaces in multi-interface mode */
37 #define MAX_INTERFACES 3
38
39-IfaceInfo iface[MAX_INTERFACES]; /* interface info */
40+extern IfaceInfo iface[MAX_INTERFACES]; /* interface info */
41
42 /** Update screen content */
43 int iface_screen(int rep, int display, int *flags_ptr);
44--
452.28.0
46