summaryrefslogtreecommitdiff
path: root/ztd-loc.c
diff options
context:
space:
mode:
Diffstat (limited to 'ztd-loc.c')
-rwxr-xr-xztd-loc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ztd-loc.c b/ztd-loc.c
index da9ab6c..100bd9f 100755
--- a/ztd-loc.c
+++ b/ztd-loc.c
@@ -66,7 +66,11 @@
#include <linux/zaptel.h>
#endif
+#ifdef DEFINE_SPINLOCK
+static DEFINE_SPINLOCK(zlock);
+#else
static spinlock_t zlock = SPIN_LOCK_UNLOCKED;
+#endif
static struct ztdlocal {
unsigned short key;