mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-08 11:38:13 +02:00
Fix compilation problem on 2.6.9 kernels (bug #6211)
This commit is contained in:
parent
da143d0606
commit
aafedbf7c5
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue