提交 850eb83a 编写于 作者: D Dave Airlie 提交者: Dave Airlie

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: NDavid Airlie <airlied@linux.ie>
上级 c94f7029
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册