summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/common_init.c2
-rw-r--r--src/common_interface.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 6163577..a5b9814 100644
--- a/configure.ac
+++ b/configure.ac
@@ -71,7 +71,7 @@ if test "x$GCC" = "xyes"; then
fi
case $host_os in
- *freebsd*)
+ *freebsd* | *dragonfly*)
freebsd=yes
;;
*linux*)
diff --git a/src/common_init.c b/src/common_init.c
index 7429518..ff24183 100644
--- a/src/common_init.c
+++ b/src/common_init.c
@@ -54,7 +54,7 @@ pci_system_init( void )
#ifdef linux
err = pci_system_linux_sysfs_create();
-#elif defined(__FreeBSD__)
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
err = pci_system_freebsd_create();
#elif defined(__OpenBSD__)
err = pci_system_openbsd_create();
diff --git a/src/common_interface.c b/src/common_interface.c
index d7e4b62..aee2754 100644
--- a/src/common_interface.c
+++ b/src/common_interface.c
@@ -64,7 +64,7 @@
#define HTOLE_16(x) htole16(x)
#define HTOLE_32(x) htole32(x)
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) || defined(__DragonFly__)
#define LETOH_16(x) le16toh(x)
#define LETOH_32(x) le32toh(x)
#else