summaryrefslogtreecommitdiff
path: root/x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch
diff options
context:
space:
mode:
Diffstat (limited to 'x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch')
-rw-r--r--x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch b/x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch
new file mode 100644
index 000000000000..9554254e6239
--- /dev/null
+++ b/x11-plugins/wmmoonclock/files/wmmoonclock-1.29-gcc-10.patch
@@ -0,0 +1,37 @@
+diff -Naur wmmoonclock-1.29.orig/src/xutils.c wmmoonclock-1.29/src/xutils.c
+--- wmmoonclock-1.29.orig/src/xutils.c 2017-08-15 00:32:44.000000000 +0200
++++ wmmoonclock-1.29/src/xutils.c 2020-02-27 11:42:33.266076617 +0100
+@@ -52,6 +52,13 @@
+ XpmIcon wmgen;
+ Pixmap pixmask;
+
++Display *display;
++Window Root;
++Window iconwin, win;
++int screen;
++int DisplayDepth;
++
++
+
+
+
+diff -Naur wmmoonclock-1.29.orig/src/xutils.h wmmoonclock-1.29/src/xutils.h
+--- wmmoonclock-1.29.orig/src/xutils.h 2017-08-15 00:31:51.000000000 +0200
++++ wmmoonclock-1.29/src/xutils.h 2020-02-27 11:41:58.180058348 +0100
+@@ -20,11 +20,11 @@
+ /*
+ * Global variable
+ */
+-Display *display;
+-Window Root;
+-Window iconwin, win;
+-int screen;
+-int DisplayDepth;
++extern Display *display;
++extern Window Root;
++extern Window iconwin, win;
++extern int screen;
++extern int DisplayDepth;
+
+
+