summaryrefslogtreecommitdiff
path: root/tor2.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-08-31 21:43:39 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-08-31 21:43:39 +0000
commitebf8bded3f539c61a5a99e1d43214d1b0228396a (patch)
tree57c7fc03b8e5944ad45319c09e0495dfd87d293c /tor2.c
parent3e06aadaa9965a951c0b0e322655f3ecd46be8e1 (diff)
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
Diffstat (limited to 'tor2.c')
-rwxr-xr-xtor2.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tor2.c b/tor2.c
index 013f223..7ee9f81 100755
--- a/tor2.c
+++ b/tor2.c
@@ -1087,7 +1087,11 @@ static void tor2_tasklet(unsigned long data)
static int syncsrc = 0;
static int syncnum = 0 /* -1 */;
static int syncspan = 0;
+#ifdef DEFINE_SPINLOCK
+static DEFINE_SPINLOCK(synclock);
+#else
static spinlock_t synclock = SPIN_LOCK_UNLOCKED;
+#endif
static int tor2_findsync(struct tor2 *tor)
{