Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYkIg-0006W4-6M for qemu-devel@nongnu.org; Thu, 28 Aug 2008 12:24:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYkIe-0006Sd-CA for qemu-devel@nongnu.org; Thu, 28 Aug 2008 12:24:44 -0400 Received: from [199.232.76.173] (port=57313 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYkIe-0006SM-1j for qemu-devel@nongnu.org; Thu, 28 Aug 2008 12:24:44 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:5634) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYkIe-00023o-3E for qemu-devel@nongnu.org; Thu, 28 Aug 2008 12:24:44 -0400 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m7SGOeZg023752 for ; Thu, 28 Aug 2008 09:24:40 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1KYkIZ-0002sL-MC for qemu-devel@nongnu.org; Thu, 28 Aug 2008 17:24:39 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18614.53575.679530.36194@mariner.uk.xensource.com> Date: Thu, 28 Aug 2008 17:24:39 +0100 From: Ian Jackson Subject: [Qemu-devel] [PATCH] usb-linux.c: #define __user to work around broken Linux headers Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Really we would like to #include but according to changelogs in xen-unstable, at least FC6R3 doesn't have it. So instead we do this: we #define __user ourselves, which is what does on systems which are not broken. (This change is identical to xen-unstable 11601:ba7487569374378b398a1b134ea108a6a8209b4b. and qemu-xen 1f153e0706851b43bb5c2083e531fd7b64b75be1.) Signed-off-by: Ian Jackson --- usb-linux.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usb-linux.c b/usb-linux.c index c31d56a..db51fe6 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -33,6 +33,9 @@ #if defined(__linux__) #include #include +/* Some versions of usbdevice_fs.h need __user to be defined for them. */ +/* This may (harmlessly) conflict with a definition in linux/compiler.h. */ +#define __user #include #include #include -- 1.4.4.4