From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56436) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoZcU-00005n-5Y for qemu-devel@nongnu.org; Wed, 12 Nov 2014 10:14:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoZcN-0004xY-7l for qemu-devel@nongnu.org; Wed, 12 Nov 2014 10:14:06 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50369) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoZcN-0004xQ-0A for qemu-devel@nongnu.org; Wed, 12 Nov 2014 10:13:59 -0500 From: Gerd Hoffmann Date: Wed, 12 Nov 2014 16:13:51 +0100 Message-Id: <1415805233-9050-2-git-send-email-kraxel@redhat.com> In-Reply-To: <1415805233-9050-1-git-send-email-kraxel@redhat.com> References: <1415805233-9050-1-git-send-email-kraxel@redhat.com> Subject: [Qemu-devel] [PULL for-2.2 1/3] Provide the missing LIBUSB_LOG_LEVEL_* for older libusb or FreeBSD. Providing just the needed value as a defined. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann , Chris Johns From: Chris Johns Signed-off-by: Chris Johns Signed-off-by: Gerd Hoffmann --- 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 */ -- 1.8.3.1