summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2004-07-25 08:57:15 +0000
committerDave Airlie <airlied@linux.ie>2004-07-25 08:57:15 +0000
commit862fcee057a4602a0a9fdc54266f63fe33b0fd8b (patch)
treea97876fd63dfdc39490be0539e57930a773a82b6
parent02df04d71d373f1f779ebfd5d383a704ebb397ee (diff)
check for __user if not there define it
-rw-r--r--shared-core/drm.h4
-rw-r--r--shared/drm.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/shared-core/drm.h b/shared-core/drm.h
index ce51dfc1..feb9af15 100644
--- a/shared-core/drm.h
+++ b/shared-core/drm.h
@@ -37,6 +37,10 @@
#ifndef _DRM_H_
#define _DRM_H_
+#ifndef __user
+#define __user
+#endif
+
#if defined(__linux__)
#include <linux/config.h>
#include <asm/ioctl.h> /* For _IO* macros */
diff --git a/shared/drm.h b/shared/drm.h
index ce51dfc1..feb9af15 100644
--- a/shared/drm.h
+++ b/shared/drm.h
@@ -37,6 +37,10 @@
#ifndef _DRM_H_
#define _DRM_H_
+#ifndef __user
+#define __user
+#endif
+
#if defined(__linux__)
#include <linux/config.h>
#include <asm/ioctl.h> /* For _IO* macros */