Make older & bogus compilers happy. aka. force "static" storage class

for SPIN_LOCK_UNLOCKED constant.
This commit is contained in:
gbeauche 2003-09-29 22:41:50 +00:00
parent c7dd356f7f
commit 792bef8e61

View File

@ -284,7 +284,7 @@ static inline int testandset(int *p)
#define HAVE_SPINLOCKS 1
typedef int spinlock_t;
const spinlock_t SPIN_LOCK_UNLOCKED = 0;
static const spinlock_t SPIN_LOCK_UNLOCKED = 0;
static inline void spin_lock(spinlock_t *lock)
{