summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorAlan Hourihane <alanh@fairlite.demon.co.uk>2006-06-23 16:29:39 +0000
committerAlan Hourihane <alanh@fairlite.demon.co.uk>2006-06-23 16:29:39 +0000
commitaafedbf7c57903949e74fc7123a1f1fc1e94ea47 (patch)
treedda4b1604a8456dcf48cf90f0c332fab35ceb260 /linux-core
parentda143d0606e321e48037d39e0c82355a4695328a (diff)
Fix compilation problem on 2.6.9 kernels (bug #6211)
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_auth.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/drm_auth.c b/linux-core/drm_auth.c
index b6a3cba3..a6f74209 100644
--- a/linux-core/drm_auth.c
+++ b/linux-core/drm_auth.c
@@ -140,6 +140,9 @@ int drm_getmagic(struct inode *inode, struct file *filp,
unsigned int cmd, unsigned long arg)
{
static drm_magic_t sequence = 0;
+#ifndef DEFINE_SPINLOCK
+#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
+#endif
static DEFINE_SPINLOCK(lock);
drm_file_t *priv = filp->private_data;
drm_device_t *dev = priv->head->dev;