summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2005-05-15 10:19:21 +0000
committerDave Airlie <airlied@linux.ie>2005-05-15 10:19:21 +0000
commitbd72c6990f22381af61f62bffe70619f726d5923 (patch)
tree9b38a2b2c4881d2d73d1ed9080a88344966d816a /shared-core
parente0fc400b681cb6b04ba0769c58f279a2aa4326a5 (diff)
wrap config.h include with defined for KERNEL
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/drm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index e0b6e5e1..d54a7687 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -63,7 +63,9 @@
#endif
#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