diff options
author | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-08-20 21:16:40 +0000 |
---|---|---|
committer | kpfleming <kpfleming@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2008-08-20 21:16:40 +0000 |
commit | 252bd2c93858654d6af5ebca0ed6704f1c14401a (patch) | |
tree | 8cc52beb1765d3b6131ab36738dd36fe5aa58223 /kernel/xpp | |
parent | 641e8ab0966ece7252a84e4f943b018991d8f936 (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')
-rw-r--r-- | kernel/xpp/xpd.h | 5 |
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 |