wrap config.h include with defined for KERNEL
authorDave Airlie <airlied@linux.ie>
Sun, 15 May 2005 10:19:21 +0000 (10:19 +0000)
committerDave Airlie <airlied@linux.ie>
Sun, 15 May 2005 10:19:21 +0000 (10:19 +0000)
shared-core/drm.h

index e0b6e5e..d54a768 100644 (file)
@@ -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