diff options
author | Martin Mares <mj@ucw.cz> | 2007-09-12 21:26:56 +0200 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2007-09-12 21:26:56 +0200 |
commit | 99091df9ef27a820a52eaa46fbc5deafa7b1327b (patch) | |
tree | 6d6938c7d3c0f614aeaf249b90c1efa292253b65 /lib/fbsd-device.c | |
parent | 09156b3b13e4940d14d390f7cbb1fd6bdea6a9d8 (diff) | |
download | pciutils-99091df9ef27a820a52eaa46fbc5deafa7b1327b.tar.gz |
Extended the fbsd-device backend to run on Dragonfly BSD.
Diffstat (limited to 'lib/fbsd-device.c')
-rw-r--r-- | lib/fbsd-device.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/fbsd-device.c b/lib/fbsd-device.c index 46fa7a2..b770c58 100644 --- a/lib/fbsd-device.c +++ b/lib/fbsd-device.c @@ -19,13 +19,15 @@ # endif #endif -#if __FreeBSD_version < 500000 +#if defined(__DragonFly__) +# include <bus/pci/pcivar.h> +#elif __FreeBSD_version < 500000 # include <pci/pcivar.h> #else # include <dev/pci/pcivar.h> #endif -#if __FreeBSD_version < 430000 +#if __FreeBSD_version < 430000 && !defined(__DragonFly__) # include <pci/pci_ioctl.h> #else # include <sys/pciio.h> |