summaryrefslogtreecommitdiff
path: root/torisa.c
diff options
context:
space:
mode:
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];