qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/2] usb/host-libusb: Fix building with libusb g


From: Ed Maste
Subject: Re: [Qemu-devel] [PATCH 2/2] usb/host-libusb: Fix building with libusb git master code
Date: Fri, 7 Jun 2013 10:13:52 -0400

On 6 June 2013 10:39, Hans de Goede <address@hidden> wrote:
> +#if LIBUSBX_API_VERSION >= 0x01000102
> +    rc = libusb_get_port_numbers(dev, path, 7);
> +#else
>      rc = libusb_get_port_path(ctx, dev, path, 7);
> +#endif

I just added libusb_get_port_numbers to FreeBSD's libusb, but we don't
have LIBUSBX_API_VERSION defined; we don't (yet) implement all of the
functionality that would be implied by given version.

I'm not sure if it'd be better to add the definition in FreeBSD's
libusb (and fault in missing functionality as needed, presumably), or
address it in libusb consumers with additional #ifdefs.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]