diff options
author | Shaun Ruffell <sruffell@digium.com> | 2009-05-01 16:43:18 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2009-05-01 16:43:18 +0000 |
commit | cd7190a5433efea420139917d9e47aeb93689a93 (patch) | |
tree | e46582e28bacbdb4cc372207782e67f026cfade8 /drivers/dahdi | |
parent | 1432a4f8302162ccfc054788500c3606a2f075c8 (diff) |
dahdi-base: define __RW_LOCK_UNLOCKED()
Linux 2.6.9 does not contain that definition, but the older definition is
deprecated since it defeats lock state checking. DAHDI-253
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@6554 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi')
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 991816f..4741720 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -357,6 +357,10 @@ u_char __dahdi_lin2a[16384]; static u_char defgain[256]; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 10) +#define __RW_LOCK_UNLOCKED() RW_LOCK_UNLOCKED +#endif + #ifdef DEFINE_RWLOCK static DEFINE_RWLOCK(zone_lock); static DEFINE_RWLOCK(chan_lock); |