From 1f153e0706851b43bb5c2083e531fd7b64b75be1 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 18 Jul 2008 15:51:19 +0100 Subject: [PATCH] usb-linux.c: #define __user to work around broken Linux headers Really we would like to #include but according to changelogs in xen-unstable, at least FC6R3 doesn't have it. This change is identical to xen-unstable 11601:ba7487569374378b398a1b134ea108a6a8209b4b. --- usb-linux.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/usb-linux.c b/usb-linux.c index 7f75598f..5b573f45 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -28,6 +28,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 -- 2.39.5