summaryrefslogtreecommitdiff
path: root/lib/fbsd-device.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2007-09-12 21:26:56 +0200
committerMartin Mares <mj@ucw.cz>2007-09-12 21:26:56 +0200
commit99091df9ef27a820a52eaa46fbc5deafa7b1327b (patch)
tree6d6938c7d3c0f614aeaf249b90c1efa292253b65 /lib/fbsd-device.c
parent09156b3b13e4940d14d390f7cbb1fd6bdea6a9d8 (diff)
downloadpciutils-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.c6
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>