xorg-x11-server/p_ppc_domain_workaround.diff

14 lines
532 B
Diff

diff -urp ../xserver.orig/hw/xfree86/os-support/bus/linuxPci.c ./hw/xfree86/os-support/bus/linuxPci.c
--- ../xserver.orig/hw/xfree86/os-support/bus/linuxPci.c 2006-11-08 16:13:49.000000000 +0000
+++ ./hw/xfree86/os-support/bus/linuxPci.c 2006-11-09 13:29:34.000000000 +0000
@@ -150,6 +150,9 @@ linuxPciOpenFile(PCITAG tag, Bool write)
struct stat ignored;
static int is26 = -1;
+#if __PPC
+ is26 = 0;
+#endif
domain = PCI_DOM_FROM_TAG(tag);
bus = PCI_BUS_NO_DOMAIN(PCI_BUS_FROM_TAG(tag));
dev = PCI_DEV_FROM_TAG(tag);