diff options
author | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-06-13 18:01:23 +0000 |
---|---|---|
committer | florian <florian@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2007-06-13 18:01:23 +0000 |
commit | 1225e4b1328a7e2b1b25fff450b9ffbc9d493c71 (patch) | |
tree | e93148618b23a6e220765b7c4f75c1c565fbb8d3 /package | |
parent | d93e54e4b48df1d4fb9c527c3aadebe8700a61ab (diff) |
Fix compilation for 2.4 kernels (#1836)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7616 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package')
-rw-r--r-- | package/openswan/patches/140-linux_moduleparam.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/package/openswan/patches/140-linux_moduleparam.patch b/package/openswan/patches/140-linux_moduleparam.patch new file mode 100644 index 000000000..8fbc358bc --- /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 <linux/version.h> + #define __NO_VERSION__ + #include <linux/module.h> ++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) ++#include <linux/moduleparam.h> ++#endif + #include <linux/kernel.h> /* printk() */ + + #include "openswan/ipsec_kversion.h" |