summaryrefslogtreecommitdiff
path: root/ztd-eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'ztd-eth.c')
-rwxr-xr-xztd-eth.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ztd-eth.c b/ztd-eth.c
index 62e4382..e6436ea 100755
--- a/ztd-eth.c
+++ b/ztd-eth.c
@@ -50,8 +50,11 @@ struct ztdeth_header {
/* We take the raw message, put it in an ethernet frame, and add a
two byte addressing header at the top for future use */
-
+#ifdef DEFINE_SPINLOCK
+static DEFINE_SPINLOCK(zlock);
+#else
static spinlock_t zlock = SPIN_LOCK_UNLOCKED;
+#endif
static struct ztdeth {
unsigned char addr[ETH_ALEN];