From cd7190a5433efea420139917d9e47aeb93689a93 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Fri, 1 May 2009 16:43:18 +0000 Subject: 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 --- drivers/dahdi/dahdi-base.c | 4 ++++ 1 file changed, 4 insertions(+) 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); -- cgit v1.2.3