summaryrefslogtreecommitdiff
path: root/include/dahdi
diff options
context:
space:
mode:
Diffstat (limited to 'include/dahdi')
-rw-r--r--include/dahdi/kernel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 7e4e254..597e139 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -1262,6 +1262,10 @@ wait_for_completion_timeout(struct completion *x, unsigned long timeout)
#endif /* 2.6.26 */
#endif /* 2.6.31 */
+#ifndef DEFINE_SPINLOCK
+#define DEFINE_SPINLOCK(x) spinlock_t x = SPIN_LOCK_UNLOCKED
+#endif
+
#ifndef DMA_BIT_MASK
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
#endif