summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bsd-core/drm_os_freebsd.h3
-rw-r--r--bsd/drm_os_freebsd.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/bsd-core/drm_os_freebsd.h b/bsd-core/drm_os_freebsd.h
index 5337cc2f..2addf2f4 100644
--- a/bsd-core/drm_os_freebsd.h
+++ b/bsd-core/drm_os_freebsd.h
@@ -59,10 +59,11 @@
#include <sys/mman.h>
#include <sys/rman.h>
#include <sys/memrange.h>
-#include <dev/pci/pcivar.h>
#if __FreeBSD_version >= 500000
+#include <dev/pci/pcivar.h>
#include <sys/selinfo.h>
#else
+#include <pci/pcivar.h>
#include <sys/select.h>
#endif
#include <sys/bus.h>
diff --git a/bsd/drm_os_freebsd.h b/bsd/drm_os_freebsd.h
index 5337cc2f..2addf2f4 100644
--- a/bsd/drm_os_freebsd.h
+++ b/bsd/drm_os_freebsd.h
@@ -59,10 +59,11 @@
#include <sys/mman.h>
#include <sys/rman.h>
#include <sys/memrange.h>
-#include <dev/pci/pcivar.h>
#if __FreeBSD_version >= 500000
+#include <dev/pci/pcivar.h>
#include <sys/selinfo.h>
#else
+#include <pci/pcivar.h>
#include <sys/select.h>
#endif
#include <sys/bus.h>