aboutsummaryrefslogtreecommitdiffstats
path: root/community/lcdproc/0001-iface.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/lcdproc/0001-iface.patch')
-rw-r--r--community/lcdproc/0001-iface.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/community/lcdproc/0001-iface.patch b/community/lcdproc/0001-iface.patch
new file mode 100644
index 00000000000..028deaf5d43
--- /dev/null
+++ b/community/lcdproc/0001-iface.patch
@@ -0,0 +1,22 @@
+--- a/clients/lcdproc/iface.h
++++ b/clients/lcdproc/iface.h
+@@ -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);
+--- a/clients/lcdproc/iface.c
++++ b/clients/lcdproc/iface.c
+@@ -32,7 +32,7 @@
+ #define UNSET_INT -1
+ #define UNSET_STR "\01"
+
+-
++IfaceInfo iface[MAX_INTERFACES]; /* interface info */
+ static int iface_count = 0; /* number of interfaces */
+ static char unit_label[10] = "B"; /* default unit label is Bytes */
+ static int transfer_screen = 0; /* by default, transfer screen is not shown */