From: Michal Januszewski Date: Mon, 14 Aug 2006 06:24:26 +0000 (-0700) Subject: [PATCH] fbdev: include backlight.h only when __KERNEL__ is defined X-Git-Tag: v2.6.18-rc5~86 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2b25742556b1a351ce4821f6feddcba23bdd930b;p=karo-tx-linux.git [PATCH] fbdev: include backlight.h only when __KERNEL__ is defined linux/backlight.h pulls in header files (eg. ioport.h) that break compilation of userspace programs. To solve the problem, only include backlight.h in fb.h if compiling kernel stuff. Signed-off-by: Michal Januszewski Cc: "Antonino A. Daplas" Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/fb.h b/include/linux/fb.h index 4ad0673b1995..2f335e966011 100644 --- a/include/linux/fb.h +++ b/include/linux/fb.h @@ -1,7 +1,6 @@ #ifndef _LINUX_FB_H #define _LINUX_FB_H -#include #include /* Definitions of frame buffers */ @@ -381,6 +380,7 @@ struct fb_cursor { #include #include #include +#include #include struct vm_area_struct;