diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-02-09 15:25:33 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-02-09 15:25:33 +0000 |
commit | cea472e488fc6b17c0fa5922c9618bb3e5a35f72 (patch) | |
tree | 2a8a172d9dbb8fee5eb35d15f230da92f1a57b4e | |
parent | 52e3732076ffbd5ab2186148bea303bbd01c6fc6 (diff) |
dahdi: build fix for Kernels < 2.6.16
* Fixes building for kernels < 2.6.16 (and some older Centos 4 ones).
* Broken by http://svn.asterisk.org/svn/dahdi/linux/trunk@9721
(Jan-2011)
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10460 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/dahdi-base.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index 7e23abc..d529f16 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -49,7 +49,9 @@ #include <linux/sched.h> #include <linux/list.h> #include <linux/delay.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16) #include <linux/mutex.h> +#endif #if defined(HAVE_UNLOCKED_IOCTL) && defined(CONFIG_BKL) #include <linux/smp_lock.h> |