summarylogtreecommitdiffstats
path: root/010-ardesia-gcc10-fix.patch
diff options
context:
space:
mode:
authorDaniel Bermond2020-09-30 19:16:49 +0000
committerDaniel Bermond2020-09-30 19:16:49 +0000
commit14148791420709dc3175f9564ec494882777e65d (patch)
tree519bc8a1887de594c6368aac98fd6ec7298303d9 /010-ardesia-gcc10-fix.patch
parent49f3305f3e8292fd3deafa6fbcc05e4707167ecb (diff)
downloadaur-14148791420709dc3175f9564ec494882777e65d.tar.gz
Fix build with gcc10
Diffstat (limited to '010-ardesia-gcc10-fix.patch')
-rw-r--r--010-ardesia-gcc10-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/010-ardesia-gcc10-fix.patch b/010-ardesia-gcc10-fix.patch
new file mode 100644
index 000000000000..c422990195f8
--- /dev/null
+++ b/010-ardesia-gcc10-fix.patch
@@ -0,0 +1,22 @@
+--- a/src/bar.c
++++ b/src/bar.c
+@@ -26,6 +26,8 @@
+ #include <utils.h>
+ #include <bar.h>
+
++GtkBuilder *bar_gtk_builder = NULL;
++
+ /*
+ * Calculate the better position where put the bar.
+ */
+--- a/src/utils.h
++++ b/src/utils.h
+@@ -62,7 +62,7 @@
+
+
+ /* The gtk builder object of the bar window */
+-GtkBuilder *bar_gtk_builder;
++extern GtkBuilder *bar_gtk_builder;
+
+
+ #define PROGRAM_NAME "Ardesia"