summaryrefslogtreecommitdiff
path: root/include/dahdi/kernel.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/dahdi/kernel.h')
-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 1819e13..f5980f7 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -1285,6 +1285,10 @@ wait_for_completion_interruptible_timeout(struct completion *x,
const struct pci_device_id _x[] __devinitdata
#endif
+#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