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

Closes: https://bugs.gentoo.org/706920
Package-Manager: Portage-2.3.87, Repoman-2.3.20
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
Bernard Cafarelli
2020-02-03 00:18:32 +01:00
parent 57a4ad673e
commit d9ae948f79
2 changed files with 26 additions and 2 deletions

View File

@@ -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 */

View 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 )