summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-12-19 17:21:34 +0000
committersruffell <sruffell@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-12-19 17:21:34 +0000
commit389a44aa12edaa7a89ae4a534a6fc2e9c3cacc83 (patch)
tree58afc778c87226cb8bf68735e7756722b45b7288
parent7b37d36938b44708e642dae2286826f6c3b5e8ac (diff)
Compilation fix for kernels copied from DAHDI.
git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4597 5390a7c7-147a-4af0-8ec9-7488f05a26cb
-rw-r--r--kernel/xpp/xpd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/xpp/xpd.h b/kernel/xpp/xpd.h
index c0bfcc0..7f85890 100644
--- a/kernel/xpp/xpd.h
+++ b/kernel/xpp/xpd.h
@@ -30,7 +30,11 @@
#include <linux/kernel.h>
#include <linux/device.h>
#include <asm/atomic.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 26)
+#include <linux/semaphore.h>
+#else
#include <asm/semaphore.h>
+#endif
#include <linux/moduleparam.h>
#ifdef XPP_DEBUGFS
#ifndef CONFIG_DEBUG_FS