summarylogtreecommitdiffstats
path: root/build-fix.patch
blob: 503ae670222877fcf24d97bdb52690846b1df379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
diff -Naur a/common/multiload-config.c b/common/multiload-config.c
--- a/common/multiload-config.c	2016-12-05 17:13:59.000000000 +0100
+++ b/common/multiload-config.c	2020-07-30 21:18:03.568945194 +0200
@@ -26,6 +26,8 @@
 #include "graph-data.h"
 #include "multiload-config.h"
 
+GraphType graph_types[GRAPH_MAX];
+
 guint multiload_config_get_num_colors(guint id)
 {
 	g_assert_cmpuint (graph_types[id].num_colors, <=, MAX_COLORS);
diff -Naur a/common/multiload-config.h b/common/multiload-config.h
--- a/common/multiload-config.h	2016-12-05 17:13:59.000000000 +0100
+++ b/common/multiload-config.h	2020-07-30 21:18:21.685273529 +0200
@@ -56,7 +56,7 @@
 
 
 // global variable
-GraphType graph_types[GRAPH_MAX];
+extern GraphType graph_types[GRAPH_MAX];
 
 
 G_GNUC_INTERNAL guint
diff -Naur a/xfce4/plugin.c b/xfce4/plugin.c
--- a/xfce4/plugin.c    2016-12-05 18:13:59.000000000 +0200
+++ b/xfce4/plugin.c    2020-12-24 22:50:53.839435971 +0200
@@ -25,6 +25,7 @@

 #include <libxfce4util/libxfce4util.h>
 #include <libxfce4panel/xfce-panel-plugin.h>
+#include <libxfce4panel/xfce-panel-macros.h>

 #include "common/multiload.h"
 #include "common/ui.h"