projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c94f702
)
drm: wrap config.h include in a ifdef KERNEL
author
Dave Airlie
<airlied@starflyer.(none)>
Thu, 7 Jul 2005 11:09:14 +0000
(21:09 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 7 Jul 2005 11:09:14 +0000
(21:09 +1000)
This file can be included from userspace so wrap the config.h include.
Signed-off-by: David Airlie <airlied@linux.ie>
drivers/char/drm/drm.h
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/drm/drm.h
b/drivers/char/drm/drm.h
index 587305282ea8663cfcb6821523c2b9eafd452a94..e8371dd87fbca0867953f1e53c07b5ec8b5a19d5 100644
(file)
--- 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 <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