summaryrefslogtreecommitdiff
path: root/sysutils/pciutils/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/pciutils/patches/patch-ad')
-rw-r--r--sysutils/pciutils/patches/patch-ad22
1 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/pciutils/patches/patch-ad b/sysutils/pciutils/patches/patch-ad
new file mode 100644
index 00000000000..ea342164890
--- /dev/null
+++ b/sysutils/pciutils/patches/patch-ad
@@ -0,0 +1,22 @@
+$NetBSD: patch-ad,v 1.1 2009/07/20 05:58:44 hasso Exp $
+
+--- lib/fbsd-device.c.orig 2009-07-20 08:16:03 +0300
++++ lib/fbsd-device.c 2009-07-20 08:17:55 +0300
+@@ -77,7 +77,7 @@ fbsd_read(struct pci_dev *d, int pos, by
+ if (pos >= 256)
+ return 0;
+
+-#if __FreeBSD_version >= 700053
++#if __FreeBSD_version >= 700053 || __DragonFly_version >= 200203
+ pi.pi_sel.pc_domain = d->domain;
+ #endif
+ pi.pi_sel.pc_bus = d->bus;
+@@ -120,7 +120,7 @@ fbsd_write(struct pci_dev *d, int pos, b
+ if (pos >= 256)
+ return 0;
+
+-#if __FreeBSD_version >= 700053
++#if __FreeBSD_version >= 700053 || __DragonFly_version >= 200203
+ pi.pi_sel.pc_domain = d->domain;
+ #endif
+ pi.pi_sel.pc_bus = d->bus;