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 | |
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')
-rw-r--r-- | linux-core/mga_drv.c | 2 | ||||
-rw-r--r-- | linux-core/r128_drv.c | 2 | ||||
-rw-r--r-- | linux-core/radeon_drv.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/mga_drv.c b/linux-core/mga_drv.c index 4dc56031..1a559927 100644 --- a/linux-core/mga_drv.c +++ b/linux-core/mga_drv.c @@ -75,7 +75,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 = mga_compat_ioctl, #endif }, 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 }, diff --git a/linux-core/radeon_drv.c b/linux-core/radeon_drv.c index 52e50174..57c24f4a 100644 --- a/linux-core/radeon_drv.c +++ b/linux-core/radeon_drv.c @@ -93,7 +93,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 = radeon_compat_ioctl, #endif }, |