summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Sokolovsky <paul.sokolovsky@linaro.org>2011-06-08 15:04:47 +0100
committerAndy Green <andy.green@linaro.org>2011-06-08 15:04:47 +0100
commit5e839ba40e1a2cfb4e200fd060dfe9a59989f877 (patch)
treeae749b7af75dbb68734478dcade93a426efea547
parent0473993fbab4aeeca99658cc0911cf39e967f560 (diff)
drm.h: Fix DRM compilation with bare-metal toolchain.
An ifdef in drm.h expects to be compiled with full-fledged Linux toolchain, but it's common to compile kernel with just bare-metal toolchain which doesn't define __linux__. So, also add __KERNEL__ check. Signed-off-by: Paul Sokolovsky <paul.sokolovsky@linaro.org>
-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 e5f70617dec..5284aa0ed79 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(__KERNEL__) || defined(__linux__)
#include <linux/types.h>
#include <asm/ioctl.h>