diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2008-08-20 21:22:12 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2008-08-20 21:22:12 +0000 |
commit | e3ccd80d0fe4bfc7439d1f2fb6f73c7b86ab13e8 (patch) | |
tree | fd098a72026fa37c2c43dee7f70a9d92ed1ca3b4 /drivers/dahdi/xpp | |
parent | c97ed60af4545c6d4e6099eea18fd5c429b4126c (diff) |
improve compatibility with 2.6.26 and 2.6.27 kernels
(closes issue #13253)
Reported by: raiden
Patches:
zap-dev.patch uploaded by smurfix on issue #13277 (license 547)
zap-sema.patch uploaded by smurfix on issue #13277 (license 547)
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@4801 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp')
-rw-r--r-- | drivers/dahdi/xpp/xpd.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/dahdi/xpp/xpd.h b/drivers/dahdi/xpp/xpd.h index ae87360..2e89adb 100644 --- a/drivers/dahdi/xpp/xpd.h +++ b/drivers/dahdi/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 |