From: Florian Fainelli Date: Wed, 13 Jun 2007 18:01:23 +0000 (+0000) Subject: Fix compilation for 2.4 kernels (#1836) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9aff33e13f46094938feb4acd4b5a3ebe34246e7;p=openwrt%2Fstaging%2Fldir.git Fix compilation for 2.4 kernels (#1836) SVN-Revision: 7616 --- diff --git a/package/openswan/patches/140-linux_moduleparam.patch b/package/openswan/patches/140-linux_moduleparam.patch new file mode 100644 index 0000000000..8fbc358bc9 --- /dev/null +++ b/package/openswan/patches/140-linux_moduleparam.patch @@ -0,0 +1,13 @@ +diff -urN openswan-2.4.8/linux/net/ipsec/ipsec_proc.c openswan-2.4.8.new/linux/net/ipsec/ipsec_proc.c +--- openswan-2.4.8/linux/net/ipsec/ipsec_proc.c 2006-11-15 23:21:39.000000000 +0100 ++++ openswan-2.4.8.new/linux/net/ipsec/ipsec_proc.c 2007-06-13 20:00:51.000000000 +0200 +@@ -27,6 +27,9 @@ + #include + #define __NO_VERSION__ + #include ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) ++#include ++#endif + #include /* printk() */ + + #include "openswan/ipsec_kversion.h"