diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-08-31 21:41:37 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2005-08-31 21:41:37 +0000 |
commit | 3c4af3a1c3e762dac03b047d2fce3e1019805998 (patch) | |
tree | cf30b12e5c0f5c0c2b1be69501444c2b2350a507 /tor2.c | |
parent | 8eb9513a5d348fcb85cd4438d2152f5a18c646b4 (diff) |
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
Diffstat (limited to 'tor2.c')
-rwxr-xr-x | tor2.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1106,7 +1106,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) { |