Index: qemu/usb-bsd.c
@@ -34,7 +34,12 @@
 #undef USB_SPEED_LOW
 
 #include <sys/ioctl.h>
+#include <sys/param.h>
+#if __FreeBSD_version >= 800064
+#include <legacy/dev/usb/usb.h>
+#else
 #include <dev/usb/usb.h>
+#endif
 #include <signal.h>
 
 /* This value has maximum potential at 16.
