summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2020-02-24 22:16:38 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2020-02-24 22:47:31 +0100
commit11f48eed3b67f62b2a1e2e4dd9b6c37e372ebbd7 (patch)
tree5c4854c4bfe923d11858f0f499119a9ed3149372 /x11-plugins/wmweather+/files
parentx11-plugins/wmtimer: fix build with -fno-common (diff)
downloadgentoo-11f48eed3b67f62b2a1e2e4dd9b6c37e372ebbd7.tar.gz
gentoo-11f48eed3b67f62b2a1e2e4dd9b6c37e372ebbd7.tar.bz2
gentoo-11f48eed3b67f62b2a1e2e4dd9b6c37e372ebbd7.zip
x11-plugins/wmweather+: fix build with -fno-common
Closes: https://bugs.gentoo.org/707800 Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'x11-plugins/wmweather+/files')
-rw-r--r--x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch b/x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch
new file mode 100644
index 000000000000..1b26aa3936e5
--- /dev/null
+++ b/x11-plugins/wmweather+/files/wmweather+-2.17-gcc-10.patch
@@ -0,0 +1,23 @@
+diff -Naur wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.c wmweather+-2.17/wmgeneral/wmgeneral-x11.c
+--- wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.c 2014-02-07 20:17:44.000000000 +0100
++++ wmweather+-2.17/wmgeneral/wmgeneral-x11.c 2020-02-24 22:11:47.226905019 +0100
+@@ -94,6 +94,7 @@
+ GC NormalGC;
+ GC RedrawGC;
+ XpmIcon wmgen;
++Display *display;
+
+ /***********************/
+ /* Function Prototypes */
+diff -Naur wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.h wmweather+-2.17/wmgeneral/wmgeneral-x11.h
+--- wmweather+-2.17.orig/wmgeneral/wmgeneral-x11.h 2014-02-07 20:17:44.000000000 +0100
++++ wmweather+-2.17/wmgeneral/wmgeneral-x11.h 2020-02-24 22:10:45.233884234 +0100
+@@ -17,7 +17,7 @@
+ /* Global variable */
+ /*******************/
+
+-Display *display;
++extern Display *display;
+
+ /***********************/
+ /* Function Prototypes */