From 280d415957c0af099c44aaecb69a06c68c86aebb Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 11 Aug 2008 10:47:00 +1000 Subject: drm: add OS_HAS_GEM option. To build i915 driver pass OS_HAS_GEM=1 to make for now --- linux-core/drm_compat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'linux-core/drm_compat.h') diff --git a/linux-core/drm_compat.h b/linux-core/drm_compat.h index 7ddc2c97..c7f72e33 100644 --- a/linux-core/drm_compat.h +++ b/linux-core/drm_compat.h @@ -369,4 +369,12 @@ extern struct page *drm_vm_sg_nopage(struct vm_area_struct *vma, #define drm_core_ioremap_wc drm_core_ioremap #endif +#ifndef OS_HAS_GEM +#if (LINUX_VERSION_CODE > KERNEL_VERSION(2,6,27)) +#define OS_HAS_GEM 1 +#else +#define OS_HAS_GEM 0 +#endif +#endif + #endif -- cgit v1.2.3