From 308b40ea094d89660c25bf1dc16d70f5d3cc66c2 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 11 Oct 2005 17:34:49 +0000 Subject: The Linux 2.6.9 (and earlier) fops structure does not contain a .compat_ioctl field. This change makes the DRM build on those kernels. Signed-off-by: Ian Romanick --- linux-core/r128_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux-core/r128_drv.c') diff --git a/linux-core/r128_drv.c b/linux-core/r128_drv.c index b6cff4de..a7223280 100644 --- a/linux-core/r128_drv.c +++ b/linux-core/r128_drv.c @@ -71,7 +71,7 @@ static struct drm_driver driver = { .mmap = drm_mmap, .poll = drm_poll, .fasync = drm_fasync, -#ifdef CONFIG_COMPAT +#if defined(CONFIG_COMPAT) && LINUX_VERSION_CODE > KERNEL_VERSION(2,6,9) .compat_ioctl = r128_compat_ioctl, #endif }, -- cgit v1.2.3