diff options
author | Rosen Penev <rosenp@gmail.com> | 2020-08-10 13:08:53 -0700 |
---|---|---|
committer | Rosen Penev <rosenp@gmail.com> | 2020-08-10 15:30:00 -0700 |
commit | 650b996dc07c7b3d5d45311e48e05107e9ad07d2 (patch) | |
tree | 1998018142f969043adec46894e13368fe970d16 /utils/lcdproc/patches | |
parent | 11c4323665df0e4d03ce2d843f0a52401f0e0a8e (diff) |
lcdproc: fix compilation with GCC 10
Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'utils/lcdproc/patches')
-rw-r--r-- | utils/lcdproc/patches/120-gcc10.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/utils/lcdproc/patches/120-gcc10.patch b/utils/lcdproc/patches/120-gcc10.patch new file mode 100644 index 000000000..d33e8e417 --- /dev/null +++ b/utils/lcdproc/patches/120-gcc10.patch @@ -0,0 +1,21 @@ +--- a/clients/lcdproc/iface.c ++++ b/clients/lcdproc/iface.c +@@ -32,6 +32,7 @@ + #define UNSET_INT -1 + #define UNSET_STR "\01" + ++IfaceInfo iface[MAX_INTERFACES]; + + static int iface_count = 0; /* number of interfaces */ + static char unit_label[10] = "B"; /* default unit label is Bytes */ +--- 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); |