1From 084126b03f29b33ab3e657c66e8c6a439f27f8e1 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 11Suggested-by: Conrad Kostecki <conrad@kostecki.com> 12Signed-off-by: Harald Geyer <harald@ccbib.org> 13 14[Retrieved from: 15https://github.com/lcdproc/lcdproc/commit/084126b03f29b33ab3e657c66e8c6a439f27f8e1] 16Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 17--- 18 clients/lcdproc/iface.c | 1 + 19 clients/lcdproc/iface.h | 2 +- 20 2 files changed, 2 insertions(+), 1 deletion(-) 21 22diff --git a/clients/lcdproc/iface.c b/clients/lcdproc/iface.c 23index 40e50cb7..1ac355bd 100644 24--- a/clients/lcdproc/iface.c 25+++ b/clients/lcdproc/iface.c 26@@ -32,6 +32,7 @@ 27 #define UNSET_INT -1 28 #define UNSET_STR "\01" 29 30+IfaceInfo iface[MAX_INTERFACES]; 31 32 static int iface_count = 0; /* number of interfaces */ 33 static char unit_label[10] = "B"; /* default unit label is Bytes */ 34diff --git a/clients/lcdproc/iface.h b/clients/lcdproc/iface.h 35index cc6dbaaf..c1bd6b5b 100644 36--- a/clients/lcdproc/iface.h 37+++ b/clients/lcdproc/iface.h 38@@ -18,7 +18,7 @@ 39 /** max number of interfaces in multi-interface mode */ 40 #define MAX_INTERFACES 3 41 42-IfaceInfo iface[MAX_INTERFACES]; /* interface info */ 43+extern IfaceInfo iface[MAX_INTERFACES]; /* interface info */ 44 45 /** Update screen content */ 46 int iface_screen(int rep, int display, int *flags_ptr); 47