From: Michal Januszewski 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 --- include/linux/fb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN include/linux/fb.h~fbdev-include-backlighth-only-when-__kernel__-is-defined include/linux/fb.h --- a/include/linux/fb.h~fbdev-include-backlighth-only-when-__kernel__-is-defined +++ a/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; _