--- drm_auth.c 2006-03-11 15:40:23.000000000 +0800 +++ drm_auth.c.mine 2006-03-11 15:40:14.000000000 +0800 @@ -34,6 +34,9 @@ */ #include "drmP.h" +#ifndef DEFINE_SPINLOCK +#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED +#endif /** * Generate a hash key from a magic.