summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2016-03-30 16:42:22 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-03-30 21:09:33 +0200
commit00c9672606f781f2db7e904127dcbdc2831701ca (patch)
treea4d52e6f59025479f8780199d5ac0d77c06116b5 /include/uapi
parent8812f3814120873ac625d0085e64e4b83ff5aff3 (diff)
drm: Untangle __KERNEL__ guards
make headers_install can't handle fancy conditions, so let's simplify things for it a bit. Cc: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1459348943-12803-1-git-send-email-daniel.vetter@ffwll.ch
Diffstat (limited to 'include/uapi')
-rw-r--r--include/uapi/drm/drm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h
index 85ada499574b..fbc0818bb95b 100644
--- a/include/uapi/drm/drm.h
+++ b/include/uapi/drm/drm.h
@@ -36,7 +36,13 @@
#ifndef _DRM_H_
#define _DRM_H_
-#if defined(__KERNEL__) || defined(__linux__)
+#if defined(__KERNEL__)
+
+#include <linux/types.h>
+#include <asm/ioctl.h>
+typedef unsigned int drm_handle_t;
+
+#elif defined(__linux__)
#include <linux/types.h>
#include <asm/ioctl.h>