From: Dave Airlie Date: Thu, 7 Jul 2005 11:09:14 +0000 (+1000) Subject: drm: wrap config.h include in a ifdef KERNEL X-Git-Tag: v2.6.13-rc3~99^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=850eb83a6a21b086624b227653ce90ad927ba423;p=linux-2.6-omap-h63xx.git 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 --- diff --git a/drivers/char/drm/drm.h b/drivers/char/drm/drm.h index 587305282ea..e8371dd87fb 100644 --- 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 +#endif #include /* For _IO* macros */ #define DRM_IOCTL_NR(n) _IOC_NR(n) #define DRM_IOC_VOID _IOC_NONE