[packages] Fix zaptel kernel module build for 2.6.32

git-svn-id: svn://svn.openwrt.org/openwrt/packages@19529 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
lars 2010-02-05 00:38:22 +00:00
parent f620c3c24d
commit 3eff6890ce

View File

@ -0,0 +1,14 @@
diff --git a/kernel/zaptel-base.c b/kernel/zaptel-base.c
index dbd6588..d4fc584 100644
--- a/kernel/zaptel-base.c
+++ b/kernel/zaptel-base.c
@@ -60,6 +60,9 @@
#include <linux/if_ppp.h>
#endif
#include <asm/atomic.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,32)
+#include <linux/sched.h>
+#endif
#ifndef CONFIG_OLD_HDLC_API
#define NEW_HDLC_INTERFACE