summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTroy Kisky <troy.kisky@boundarydevices.com>2013-02-01 13:17:37 -0700
committerTroy Kisky <troy.kisky@boundarydevices.com>2013-02-13 12:54:39 -0700
commit1764a0e8eba4ee366dfec8590196c8f3d785d867 (patch)
tree33b212384a6bf01e4e7ae360326ba43998a89e99
parent479e10125acb9508c02449f34d84be59c2d03dfe (diff)
drm: add defined(__KERNEL__) to fix compile error
-rw-r--r--include/drm/drm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm.h b/include/drm/drm.h
index 4be33b4ca2f8..a35fc65a7490 100644
--- a/include/drm/drm.h
+++ b/include/drm/drm.h
@@ -36,7 +36,7 @@
#ifndef _DRM_H_
#define _DRM_H_
-#if defined(__linux__)
+#if defined(__linux__) || defined(__KERNEL__)
#include <linux/types.h>
#include <asm/ioctl.h>