[packages] Fix zaptel kernel module build for 2.6.32
[openwrt/svn-archive/archive.git] / libs / zaptel-1.4.x / patches / 340-2.6.32.patch
1 diff --git a/kernel/zaptel-base.c b/kernel/zaptel-base.c
2 index dbd6588..d4fc584 100644
3 --- a/kernel/zaptel-base.c
4 +++ b/kernel/zaptel-base.c
5 @@ -60,6 +60,9 @@
6 #include <linux/if_ppp.h>
7 #endif
8 #include <asm/atomic.h>
9 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
10 +#include <linux/sched.h>
11 +#endif
12
13 #ifndef CONFIG_OLD_HDLC_API
14 #define NEW_HDLC_INTERFACE