From 3c4af3a1c3e762dac03b047d2fce3e1019805998 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 31 Aug 2005 21:41:37 +0000 Subject: make spinlock definitions compatible with -RT kernel patches (and future syntax in mainline kernel, probably) (issue #5080) git-svn-id: http://svn.digium.com/svn/zaptel/trunk@751 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- ztd-loc.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ztd-loc.c') diff --git a/ztd-loc.c b/ztd-loc.c index da9ab6c..100bd9f 100755 --- a/ztd-loc.c +++ b/ztd-loc.c @@ -66,7 +66,11 @@ #include #endif +#ifdef DEFINE_SPINLOCK +static DEFINE_SPINLOCK(zlock); +#else static spinlock_t zlock = SPIN_LOCK_UNLOCKED; +#endif static struct ztdlocal { unsigned short key; -- cgit v1.2.3