From aafedbf7c57903949e74fc7123a1f1fc1e94ea47 Mon Sep 17 00:00:00 2001 From: Alan Hourihane Date: Fri, 23 Jun 2006 16:29:39 +0000 Subject: Fix compilation problem on 2.6.9 kernels (bug #6211) --- linux-core/drm_auth.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'linux-core/drm_auth.c') 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; -- cgit v1.2.3