From ebf8bded3f539c61a5a99e1d43214d1b0228396a Mon Sep 17 00:00:00 2001 From: kpfleming Date: Wed, 31 Aug 2005 21:43:39 +0000 Subject: make spinlock definitions compatible with -RT kernel patches (and future kernel syntax) (issue #5080) git-svn-id: http://svn.digium.com/svn/zaptel/branches/v1-0@752 5390a7c7-147a-4af0-8ec9-7488f05a26cb --- ztd-eth.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'ztd-eth.c') diff --git a/ztd-eth.c b/ztd-eth.c index 62e4382..e6436ea 100755 --- a/ztd-eth.c +++ b/ztd-eth.c @@ -50,8 +50,11 @@ struct ztdeth_header { /* We take the raw message, put it in an ethernet frame, and add a two byte addressing header at the top for future use */ - +#ifdef DEFINE_SPINLOCK +static DEFINE_SPINLOCK(zlock); +#else static spinlock_t zlock = SPIN_LOCK_UNLOCKED; +#endif static struct ztdeth { unsigned char addr[ETH_ALEN]; -- cgit v1.2.3