summaryrefslogtreecommitdiff
path: root/emulators/qemu-devel/files/patch-hw-usb-host-libusb.c
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/qemu-devel/files/patch-hw-usb-host-libusb.c')
-rw-r--r--emulators/qemu-devel/files/patch-hw-usb-host-libusb.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/emulators/qemu-devel/files/patch-hw-usb-host-libusb.c b/emulators/qemu-devel/files/patch-hw-usb-host-libusb.c
new file mode 100644
index 000000000000..2d46b9215dfb
--- /dev/null
+++ b/emulators/qemu-devel/files/patch-hw-usb-host-libusb.c
@@ -0,0 +1,15 @@
+--- a/hw/usb/host-libusb.c
++++ b/hw/usb/host-libusb.c
+@@ -1324,8 +1324,12 @@ static Property usb_host_dev_properties[
+ DEFINE_PROP_UINT32("isobufs", USBHostDevice, iso_urb_count, 4),
+ DEFINE_PROP_UINT32("isobsize", USBHostDevice, iso_urb_frames, 32),
+ DEFINE_PROP_INT32("bootindex", USBHostDevice, bootindex, -1),
++#ifdef LIBUSB_LOG_LEVEL_WARNING
+ DEFINE_PROP_UINT32("loglevel", USBHostDevice, loglevel,
+ LIBUSB_LOG_LEVEL_WARNING),
++#else
++ DEFINE_PROP_UINT32("loglevel", USBHostDevice, loglevel, 0),
++#endif
+ DEFINE_PROP_BIT("pipeline", USBHostDevice, options,
+ USB_HOST_OPT_PIPELINE, true),
+ DEFINE_PROP_END_OF_LIST(),