x11-drivers/xf86-video-voodoo: Add patch to fix compilation.

Bug: https://bugs.gentoo.org/550642
This commit is contained in:
Matt Turner
2015-08-29 16:36:19 -07:00
parent f78f3042ac
commit f2cda5a999
2 changed files with 31 additions and 1 deletions

View File

@@ -0,0 +1,26 @@
From 9172ae566a0e85313fc80ab62b4455393eefe593 Mon Sep 17 00:00:00 2001
From: Dave Airlie <airlied@redhat.com>
Date: Mon, 22 Sep 2014 10:56:02 +1000
Subject: [PATCH] don't use PCITAG in struct anymore
---
src/voodoo.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/voodoo.h b/src/voodoo.h
index bfed497..c3eb64e 100644
--- a/src/voodoo.h
+++ b/src/voodoo.h
@@ -23,7 +23,9 @@ typedef struct {
Bool Voodoo2; /* Set if Voodoo2 */
pciVideoPtr PciInfo; /* PCI data */
+#ifndef XSERVER_LIBPCIACCESS
PCITAG PciTag;
+#endif
CARD32 PhysBase;
CARD32 Width; /* Current width */
--
2.4.6

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2012 Gentoo Foundation
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@ -12,3 +12,7 @@ IUSE=""
RDEPEND=">=x11-base/xorg-server-1.0.99"
DEPEND="${RDEPEND}
x11-proto/xf86dgaproto"
PATCHES=(
"${FILESDIR}"/${P}-no-PCITAG.patch
)