[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/9] usb/host-libusb: Fix building with libusb git m
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH 6/9] usb/host-libusb: Fix building with libusb git master code |
Date: |
Mon, 24 Jun 2013 08:44:40 +0200 |
From: Hans de Goede <address@hidden>
The next libusb release will deprecate libusb_get_port_path, and since
we compile with -Werror, this breaks the build.
Signed-off-by: Hans de Goede <address@hidden>
Signed-off-by: Gerd Hoffmann <address@hidden>
---
hw/usb/host-libusb.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index 3a582c5..0c12b0f 100644
--- a/hw/usb/host-libusb.c
+++ b/hw/usb/host-libusb.c
@@ -241,7 +241,11 @@ static int usb_host_get_port(libusb_device *dev, char
*port, size_t len)
size_t off;
int rc, i;
+#if LIBUSBX_API_VERSION >= 0x01000102
+ rc = libusb_get_port_numbers(dev, path, 7);
+#else
rc = libusb_get_port_path(ctx, dev, path, 7);
+#endif
if (rc < 0) {
return 0;
}
--
1.7.9.7
- [Qemu-devel] [PULL 0/9] usb patch queue, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH 1/9] usb/hcd-ehci-sysbus: Convert to QOM realize, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH 6/9] usb/host-libusb: Fix building with libusb git master code,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH 3/9] usb/hcd-ehci: Add Tegra2 SysBus EHCI device, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH 9/9] usb: fix serial number for hid devices, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH 7/9] usb-host-libusb: set USB_DEV_FLAG_IS_HOST, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH 8/9] usb: add serial bus property, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH 2/9] usb/hcd-ehci: Split off instance_init from realize, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH 5/9] usb/hcd-ehci: Add Faraday FUSBH200 support, Gerd Hoffmann, 2013/06/24
- [Qemu-devel] [PATCH 4/9] usb/hcd-ehci: Replace PORTSC macros with variables, Gerd Hoffmann, 2013/06/24