* [PATCH] fbdev: include backlight.h only when __KERNEL__ is defined
@ 2006-08-08 19:54 Michal Januszewski
0 siblings, 0 replies; only message in thread
From: Michal Januszewski @ 2006-08-08 19:54 UTC (permalink / raw)
To: linux-kernel; +Cc: trivial
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 <spock@gentoo.org>
---
diff --git a/include/linux/fb.h b/include/linux/fb.h
index 4ad0673..2f335e9 100644
--- a/include/linux/fb.h
+++ b/include/linux/fb.h
@@ -1,7 +1,6 @@
#ifndef _LINUX_FB_H
#define _LINUX_FB_H
-#include <linux/backlight.h>
#include <asm/types.h>
/* Definitions of frame buffers */
@@ -381,6 +380,7 @@ #include <linux/device.h>
#include <linux/workqueue.h>
#include <linux/notifier.h>
#include <linux/list.h>
+#include <linux/backlight.h>
#include <asm/io.h>
struct vm_area_struct;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-08 19:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-08 19:54 [PATCH] fbdev: include backlight.h only when __KERNEL__ is defined Michal Januszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome