diff options
-rw-r--r-- | linux-core/drm_auth.c | 3 |
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; |