diff options
author | Ian Romanick <idr@us.ibm.com> | 2005-10-11 17:34:49 +0000 |
---|---|---|
committer | Ian Romanick <idr@us.ibm.com> | 2005-10-11 17:34:49 +0000 |
commit | 308b40ea094d89660c25bf1dc16d70f5d3cc66c2 (patch) | |
tree | 7c316d917a320787a72f1ad69933438a3aa27cfe /linux-core/r128_drv.c | |
parent | 62a467303408286deef97b288ec286e21dda3761 (diff) |
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 <idr@us.ibm.com>
Diffstat (limited to 'linux-core/r128_drv.c')
-rw-r--r-- | linux-core/r128_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 }, |