Index: qemu/usb-bsd.c
@@ -35,7 +35,12 @@
 
 #include <sys/ioctl.h>
 #ifndef __DragonFly__
+#include <sys/param.h>
+#if __FreeBSD_version >= 800064
+#include <legacy/dev/usb/usb.h>
+#else
 #include <dev/usb/usb.h>
+#endif
 #else
 #include <bus/usb/usb.h>
 #endif
