commit:     ba94180ee142466df4de1c45f9b2f15fe6428b67
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 29 18:00:10 2020 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Wed Jan 29 18:26:59 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba94180e

x11-plugins/wmwork: fix build with -fno-common

Closes: https://bugs.gentoo.org/706688
Package-Manager: Portage-2.3.86, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 x11-plugins/wmwork/files/wmwork-0.2.5-gcc-10.patch | 21 +++++++++++++++++++++
 x11-plugins/wmwork/wmwork-0.2.5-r1.ebuild          |  3 ++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/x11-plugins/wmwork/files/wmwork-0.2.5-gcc-10.patch 
b/x11-plugins/wmwork/files/wmwork-0.2.5-gcc-10.patch
new file mode 100644
index 00000000000..3ed8b82f29e
--- /dev/null
+++ b/x11-plugins/wmwork/files/wmwork-0.2.5-gcc-10.patch
@@ -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 */

diff --git a/x11-plugins/wmwork/wmwork-0.2.5-r1.ebuild 
b/x11-plugins/wmwork/wmwork-0.2.5-r1.ebuild
index a7d81d4d1ae..e8fd4e681e8 100644
--- a/x11-plugins/wmwork/wmwork-0.2.5-r1.ebuild
+++ b/x11-plugins/wmwork/wmwork-0.2.5-r1.ebuild
@@ -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,3 +20,4 @@ DEPEND="${RDEPEND}
 S="${WORKDIR}/${P}/src"
 
 DOCS=( ../{CHANGES,README} )
+PATCHES=( ${FILESDIR}/${P}-gcc-10.patch )

Reply via email to