From: Harald Welte Date: Sat, 3 Sep 2005 09:27:08 +0000 (+0200) Subject: [PATCH] USB: fix usbdevice_fs header breakage X-Git-Tag: v2.6.14-rc1~11^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ce441594e965e32965432404cfaba73e8fbc6ff7;p=linux-2.6 [PATCH] USB: fix usbdevice_fs header breakage [USBDEVFS] fix inclusion of to avoud header mess Without moving the include of compat.h down, userspace programs that use usbdevice_fs.h end up including half the kernel includes (and eventually fail to compile). Signed-off-by: Harald Welte Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/usbdevice_fs.h b/include/linux/usbdevice_fs.h index fb57c22174..9facf73380 100644 --- a/include/linux/usbdevice_fs.h +++ b/include/linux/usbdevice_fs.h @@ -32,7 +32,6 @@ #define _LINUX_USBDEVICE_FS_H #include -#include /* --------------------------------------------------------------------- */ @@ -125,6 +124,7 @@ struct usbdevfs_hub_portinfo { }; #ifdef CONFIG_COMPAT +#include struct usbdevfs_urb32 { unsigned char type; unsigned char endpoint;