diff options
Diffstat (limited to 'ztd-eth.c')
-rwxr-xr-x | ztd-eth.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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]; |