qemu-trivial
[Top][All Lists]
Advanced

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

Re: [Qemu-trivial] [PATCH] allow usage of older libusb which didn't defi


From: Peter Maydell
Subject: Re: [Qemu-trivial] [PATCH] allow usage of older libusb which didn't define LIBUSB_LOG_LEVEL_WARNING
Date: Thu, 18 Apr 2013 12:21:50 +0100

On 18 April 2013 12:17, Michael Tokarev <address@hidden> wrote:
> diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
> index 29f35b3..78c315f 100644
> --- a/hw/usb/host-libusb.c
> +++ b/hw/usb/host-libusb.c
> @@ -1251,6 +1251,9 @@ 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),
> +#ifndef LIBUSB_LOG_LEVEL_WARNING /* older libusb didn't define these */
> +#define LIBUSB_LOG_LEVEL_WARNING 2
> +#endif

Can we put this up near the top of the file rather than in the
middle of the Property list definition, please?

thanks
-- PMM



reply via email to

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