qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Provide the missing LIBUSB_LOG_LEVEL_* for older libusb or FreeBSD. Providing just the needed value as a defined.
@ 2014-11-05  8:35 Chris Johns
  2014-11-05  9:51 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Johns @ 2014-11-05  8:35 UTC (permalink / raw)
  To: qemu-devel; +Cc: Chris Johns

Signed-off-by: Chris Johns <chrisj@rtems.org>
---
 hw/usb/host-libusb.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c
index d2d161b..032a0e4 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 */
-- 
2.1.2

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] Provide the missing LIBUSB_LOG_LEVEL_* for older libusb or FreeBSD. Providing just the needed value as a defined.
  2014-11-05  8:35 [Qemu-devel] [PATCH] Provide the missing LIBUSB_LOG_LEVEL_* for older libusb or FreeBSD. Providing just the needed value as a defined Chris Johns
@ 2014-11-05  9:51 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2014-11-05  9:51 UTC (permalink / raw)
  To: Chris Johns; +Cc: qemu-devel

On Mi, 2014-11-05 at 19:35 +1100, Chris Johns wrote:
> +#ifndef LIBUSB_LOG_LEVEL_WARNING /* older libusb didn't define these
> */
> +#define LIBUSB_LOG_LEVEL_WARNING 2
> +#endif

Added to usb patch queue.

thanks,
  Gerd

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-11-05  9:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-05  8:35 [Qemu-devel] [PATCH] Provide the missing LIBUSB_LOG_LEVEL_* for older libusb or FreeBSD. Providing just the needed value as a defined Chris Johns
2014-11-05  9:51 ` Gerd Hoffmann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).