]> err.no Git - linux-2.6/commitdiff
[PATCH] USB: fix usbdevice_fs header breakage
authorHarald Welte <laforge@gnumonks.org>
Sat, 3 Sep 2005 09:27:08 +0000 (11:27 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 12 Sep 2005 19:23:52 +0000 (12:23 -0700)
[USBDEVFS] fix inclusion of <linux/compat.h> 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 <laforge@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/usbdevice_fs.h

index fb57c221746827a06a1f7153ad794728771b1c89..9facf733800ccb99a7fb59e2be87b9a7846ada57 100644 (file)
@@ -32,7 +32,6 @@
 #define _LINUX_USBDEVICE_FS_H
 
 #include <linux/types.h>
-#include <linux/compat.h>
 
 /* --------------------------------------------------------------------- */
 
@@ -125,6 +124,7 @@ struct usbdevfs_hub_portinfo {
 };
 
 #ifdef CONFIG_COMPAT
+#include <linux/compat.h>
 struct usbdevfs_urb32 {
        unsigned char type;
        unsigned char endpoint;