From 18d7c50aa276d644fd820c0e565dcda7a5045c60 Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Wed, 7 Mar 2007 16:21:12 +0000 Subject: [PATCH] Test build with multiple domains unbroken again. --- xorg-x11-server-1.2.99-unbreak-domain.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 xorg-x11-server-1.2.99-unbreak-domain.patch diff --git a/xorg-x11-server-1.2.99-unbreak-domain.patch b/xorg-x11-server-1.2.99-unbreak-domain.patch new file mode 100644 index 0000000..b48f299 --- /dev/null +++ b/xorg-x11-server-1.2.99-unbreak-domain.patch @@ -0,0 +1,17 @@ +--- xorg-server-1.2.99.901/hw/xfree86/os-support/bus/linuxPci.c~ 2006-11-16 18:01:25.000000000 +0000 ++++ xorg-server-1.2.99.901/hw/xfree86/os-support/bus/linuxPci.c 2007-03-07 15:44:10.000000000 +0000 +@@ -158,7 +158,13 @@ linuxPciOpenFile(PCITAG tag, Bool write) + if (stat("/sys/bus/pci",&ignored) < 0) + is26 = 0; + else +- is26 = 1; ++ /* If we don't find the incompatible IA64 "domain support" in ++ /proc/bus/pci then we don't know domain numbers. This means ++ we ought to use /proc/bus/pci for accessing devices, instead ++ of /sys/bus/pci. So in that case we just pretend it's a 2.4 ++ kernel, and hope the kernel has set up disjoint bus numbers ++ for us, like it always used to. */ ++ is26 = domain_support; + } + + if (!domain_support && domain > 0)