tree 2720dbfd9989d3b002c98e84f3f6b4f480506dad
parent c94f70298529d99ac6e1ee7709f61eab00adeb39
author Dave Airlie <[EMAIL PROTECTED](none)> Thu, 07 Jul 2005 21:09:14 +1000
committer Dave Airlie <[EMAIL PROTECTED]> Thu, 07 Jul 2005 21:09:14 +1000

drm: wrap config.h include in a ifdef KERNEL

This file can be included from userspace so wrap the config.h include.

Signed-off-by: David Airlie <[EMAIL PROTECTED]>

 drivers/char/drm/drm.h |    2 ++
 1 files changed, 2 insertions(+)

diff --git a/drivers/char/drm/drm.h b/drivers/char/drm/drm.h
--- a/drivers/char/drm/drm.h
+++ b/drivers/char/drm/drm.h
@@ -38,7 +38,9 @@
 #define _DRM_H_
 
 #if defined(__linux__)
+#if defined(__KERNEL__)
 #include <linux/config.h>
+#endif
 #include <asm/ioctl.h>         /* For _IO* macros */
 #define DRM_IOCTL_NR(n)                _IOC_NR(n)
 #define DRM_IOC_VOID           _IOC_NONE
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to