summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2014-11-05 19:35:22 +1100
committerGerd Hoffmann <kraxel@redhat.com>2014-11-11 08:48:16 +0100
commit1e03e407845c5d698f82a262312bca5aa2406d59 (patch)
treed02879611fadc7979c64182f2552d9865a3901b6 /hw
parent558c2c8ddfb165a36eb95dc93125c04829d68aa7 (diff)
downloadqemu-1e03e407845c5d698f82a262312bca5aa2406d59.zip
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')
-rw-r--r--hw/usb/host-libusb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index d2d161bc6e..032a0e4414 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 */