From 84b9b4c84a5e82d7dba6aa4e29f3a0004e624630 Mon Sep 17 00:00:00 2001 From: Oron Peled Date: Thu, 9 Feb 2012 15:25:33 +0000 Subject: [PATCH] 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 Acked-by: Tzafrir Cohen git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10460 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/dahdi-base.c | 2 ++ 1 file changed, 2 insertions(+) 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 #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 16) #include +#endif #if defined(HAVE_UNLOCKED_IOCTL) && defined(CONFIG_BKL) #include