> With that check commented out, I am seeing some errors from
> hw/usb/host-bsd.c:
> 
> In file included from /usr/home/andreas/QEMU/qemu/hw/usb/host-bsd.c:38:
> /usr/include/dev/usb/usb.h:717: error: expected identifier before
> numeric constant
> /usr/include/dev/usb/usb.h:750: error: expected identifier before
> numeric constant
> /usr/home/andreas/QEMU/qemu/hw/usb/host-bsd.c: In function
> 'usb_host_handle_control':
> /usr/home/andreas/QEMU/qemu/hw/usb/host-bsd.c:133: error: storage size
> of 'req' isn't known
> [...]
> 
> Apparently the first issue is USB_SPEED_SUPER and USB_STATE_ATTACHED
> being used in a system enum whereas QEMU #defines them to some value?

Don't have FreeBSD at hand.  /me has a OpenBSD virtual machine for build
tests where this code compiles without issues.  Looks like the *BSDs usb
support diverged ...

Patches to fixup hw/usb/host-bsd.c for freebsd are welcome.

cheers,
  Gerd

Reply via email to