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 <airlied@linux.ie>
This commit is contained in:
Dave Airlie 2005-07-07 21:09:14 +10:00 committed by Dave Airlie
parent c94f702985
commit 850eb83a6a
1 changed files with 2 additions and 0 deletions

View File

@ -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