mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
x11-plugins/wmXName: fix build with -fno-common
Closes: https://bugs.gentoo.org/726272 Package-Manager: Portage-2.3.100, Repoman-2.3.22 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
This commit is contained in:
35
x11-plugins/wmXName/files/wmXName-0.1-fno-common.patch
Normal file
35
x11-plugins/wmXName/files/wmXName-0.1-fno-common.patch
Normal file
@@ -0,0 +1,35 @@
|
||||
diff -Naur wmXName-0.01.orig/xutils.c wmXName-0.01/xutils.c
|
||||
--- wmXName-0.01.orig/xutils.c 2002-06-28 11:34:26.000000000 +0200
|
||||
+++ wmXName-0.01/xutils.c 2020-06-13 11:02:20.393108819 +0200
|
||||
@@ -52,6 +52,11 @@
|
||||
GC NormalGC;
|
||||
XpmIcon wmgen;
|
||||
Pixmap pixmask;
|
||||
+Display *display;
|
||||
+Window Root;
|
||||
+Window iconwin, win;
|
||||
+int screen;
|
||||
+int DisplayDepth;
|
||||
|
||||
|
||||
|
||||
diff -Naur wmXName-0.01.orig/xutils.h wmXName-0.01/xutils.h
|
||||
--- wmXName-0.01.orig/xutils.h 2002-06-28 11:34:59.000000000 +0200
|
||||
+++ wmXName-0.01/xutils.h 2020-06-13 11:02:25.886113159 +0200
|
||||
@@ -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;
|
||||
|
||||
|
||||
|
||||
@@ -25,6 +25,8 @@ RDEPEND="${COMMON_DEPEND}
|
||||
>=dev-lang/perl-5.8.8-r5
|
||||
>=www-client/lynx-2.8.6-r2"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-fno-common.patch )
|
||||
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
src_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user