[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2] os-posix: Fix build on FreeBSD
From: |
Gerd Hoffmann |
Subject: |
Re: [Qemu-devel] [PATCH v2] os-posix: Fix build on FreeBSD |
Date: |
Mon, 16 Apr 2012 09:31:18 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:10.0.3) Gecko/20120307 Thunderbird/10.0.3 |
> 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