summaryrefslogtreecommitdiff
path: root/torisa.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-08-31 21:41:37 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2005-08-31 21:41:37 +0000
commit3c4af3a1c3e762dac03b047d2fce3e1019805998 (patch)
treecf30b12e5c0f5c0c2b1be69501444c2b2350a507 /torisa.c
parent8eb9513a5d348fcb85cd4438d2152f5a18c646b4 (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 'torisa.c')
-rwxr-xr-xtorisa.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/torisa.c b/torisa.c
index 53b49fc..5bee0ed 100755
--- a/torisa.c
+++ b/torisa.c
@@ -130,7 +130,11 @@ static int prefmaster = 0;
static int spansstarted = 0;
+#ifdef DEFINE_RWLOCK
+static DEFINE_RWLOCK(torisa);
+#else
static rwlock_t torisa = RW_LOCK_UNLOCKED;
+#endif
static u_char readdata[2][64][ZT_MAX_CHUNKSIZE];
static u_char writedata[2][64][ZT_MAX_CHUNKSIZE];