summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2020-02-03 00:28:08 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2020-02-03 00:28:52 +0100
commitcf12d7fd5d98f5209513bcc9b93388e98d785fd5 (patch)
treeb76687ba3af99485d8b6115e5957bd1f45adbfc8 /x11-plugins/wmMatrix/files
parentapp-editors/okteta: 0.26.3 version bump (diff)
downloadgentoo-cf12d7fd5d98f5209513bcc9b93388e98d785fd5.tar.gz
gentoo-cf12d7fd5d98f5209513bcc9b93388e98d785fd5.tar.bz2
gentoo-cf12d7fd5d98f5209513bcc9b93388e98d785fd5.zip
x11-plugins/wmMatrix: fix build with -fno-common
Thanks jer for patch Closes: https://bugs.gentoo.org/707970 Package-Manager: Portage-2.3.87, Repoman-2.3.20 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins/wmMatrix/files')
-rw-r--r--x11-plugins/wmMatrix/files/wmMatrix-0.2-fno-common.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/x11-plugins/wmMatrix/files/wmMatrix-0.2-fno-common.patch b/x11-plugins/wmMatrix/files/wmMatrix-0.2-fno-common.patch
new file mode 100644
index 00000000000..1bb92d66a6c
--- /dev/null
+++ b/x11-plugins/wmMatrix/files/wmMatrix-0.2-fno-common.patch
@@ -0,0 +1,37 @@
+--- a/xutils.h
++++ b/xutils.h
+@@ -18,11 +18,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;
+
+
+
+--- a/xutils.c
++++ b/xutils.c
+@@ -42,6 +42,15 @@
+ #include "xutils.h"
+
+
++/*
++ * Global variable
++ */
++Display *display;
++Window Root;
++Window iconwin, win;
++int screen;
++int DisplayDepth;
++
+
+ /*
+ * X11 Variables