summaryrefslogtreecommitdiff
path: root/kernel/xpp/xpd.h
diff options
context:
space:
mode:
authorkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-08-20 21:16:40 +0000
committerkpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb>2008-08-20 21:16:40 +0000
commit252bd2c93858654d6af5ebca0ed6704f1c14401a (patch)
tree8cc52beb1765d3b6131ab36738dd36fe5aa58223 /kernel/xpp/xpd.h
parent641e8ab0966ece7252a84e4f943b018991d8f936 (diff)
improve compatibility with 2.6.26 and 2.6.27 kernels
(closes issue #13277) Reported by: smurfix Patches: zap-dev.patch uploaded by smurfix (license 547) zap-sema.patch uploaded by smurfix (license 547) git-svn-id: http://svn.digium.com/svn/zaptel/branches/1.4@4496 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'kernel/xpp/xpd.h')
-rw-r--r--kernel/xpp/xpd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/kernel/xpp/xpd.h b/kernel/xpp/xpd.h
index e556ef0..35688d6 100644
--- a/kernel/xpp/xpd.h
+++ b/kernel/xpp/xpd.h
@@ -29,8 +29,13 @@
#ifdef __KERNEL__
#include <linux/kernel.h>
#include <linux/device.h>
+#include <linux/version.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