x11-plugins/wmping: fix build with -fno-common
authorBernard Cafarelli <voyageur@gentoo.org>
Sun, 2 Feb 2020 23:18:32 +0000 (00:18 +0100)
committerBernard Cafarelli <voyageur@gentoo.org>
Sun, 2 Feb 2020 23:23:29 +0000 (00:23 +0100)
Closes: https://bugs.gentoo.org/706920
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch [new file with mode: 0644]
x11-plugins/wmping/wmping-0.2.1-r1.ebuild

diff --git a/x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch b/x11-plugins/wmping/files/wmping-0.2.1-gcc-10.patch
new file mode 100644 (file)
index 0000000..3ed8b82
--- /dev/null
@@ -0,0 +1,21 @@
+--- a/wmgeneral.c
++++ b/wmgeneral.c
+@@ -45,6 +45,7 @@ Window               iconwin, win;
+ GC                    NormalGC;
+ XpmIcon               wmgen;
+ Pixmap                pixmask;
++Display               *display;
+   /*****************/
+  /* Mouse Regions */
+--- a/wmgeneral.h
++++ b/wmgeneral.h
+@@ -21,7 +21,7 @@ typedef struct {
+  /* Global variable */
+ /*******************/
+-Display               *display;
++extern Display                *display;
+   /***********************/
+  /* Function Prototypes */
index ab211f81e7b3a48b7b927d733af1b79d5caa81d4..489881f2407c2faa7330c3a05722a29a2a61df7a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -20,7 +20,10 @@ DEPEND="${RDEPEND}
        x11-libs/libICE
        x11-libs/libXt"
 
-PATCHES=( "${FILESDIR}"/${P}-format-security.patch )
+PATCHES=(
+       "${FILESDIR}"/${P}-format-security.patch
+       "${FILESDIR}"/${P}-gcc-10.patch
+       )
 
 DOCS=( AUTHORS CHANGES README )