From: Imre Vadász Date: Fri, 14 Jul 2017 21:12:15 +0000 (+0200) Subject: fbsd-device: Fix fbsd-device backend on DragonFly BSD. X-Git-Tag: v3.5.6~6 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=f4dbe10668fb96148b22dcb6ed533d385edaf7d7;p=pciutils.git fbsd-device: Fix fbsd-device backend on DragonFly BSD. DragonFly also supports PCI domains same as FreeBSD. Signed-off-by: Imre Vadász --- diff --git a/lib/fbsd-device.c b/lib/fbsd-device.c index ab04954..398fe68 100644 --- a/lib/fbsd-device.c +++ b/lib/fbsd-device.c @@ -77,7 +77,7 @@ fbsd_read(struct pci_dev *d, int pos, byte *buf, int len) if (pos >= 256) return 0; -#if __FreeBSD_version >= 700053 +#if __FreeBSD_version >= 700053 || defined(__DragonFly__) 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, byte *buf, int len) if (pos >= 256) return 0; -#if __FreeBSD_version >= 700053 +#if __FreeBSD_version >= 700053 || defined(__DragonFly__) pi.pi_sel.pc_domain = d->domain; #endif pi.pi_sel.pc_bus = d->bus;