diff options
author | Chris Johns <chrisj@rtems.org> | 2014-11-05 19:35:22 +1100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-11-11 08:48:16 +0100 |
commit | 1e03e407845c5d698f82a262312bca5aa2406d59 (patch) | |
tree | d02879611fadc7979c64182f2552d9865a3901b6 /hw/usb | |
parent | 558c2c8ddfb165a36eb95dc93125c04829d68aa7 (diff) | |
download | qemu-1e03e407845c5d698f82a262312bca5aa2406d59.zip qemu-1e03e407845c5d698f82a262312bca5aa2406d59.tar.gz qemu-1e03e407845c5d698f82a262312bca5aa2406d59.tar.bz2 |
Provide the missing LIBUSB_LOG_LEVEL_* for older libusb or FreeBSD. Providing just the needed value as a defined.
Signed-off-by: Chris Johns <chrisj@rtems.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb')
-rw-r--r-- | hw/usb/host-libusb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c index d2d161b..032a0e4 100644 --- a/hw/usb/host-libusb.c +++ b/hw/usb/host-libusb.c @@ -143,6 +143,12 @@ static void usb_host_attach_kernel(USBHostDevice *s); /* ------------------------------------------------------------------------ */ +#ifndef LIBUSB_LOG_LEVEL_WARNING /* older libusb didn't define these */ +#define LIBUSB_LOG_LEVEL_WARNING 2 +#endif + +/* ------------------------------------------------------------------------ */ + #define CONTROL_TIMEOUT 10000 /* 10 sec */ #define BULK_TIMEOUT 0 /* unlimited */ #define INTR_TIMEOUT 0 /* unlimited */ |