aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-06-13 18:01:23 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-06-13 18:01:23 +0000
commit9aff33e13f46094938feb4acd4b5a3ebe34246e7 (patch)
tree8c3a67de0cf404f9257041125ea3bce47b905db3 /package
parentb895be6ee09d2b551506238308fa8baf159d3f1f (diff)
downloadupstream-9aff33e13f46094938feb4acd4b5a3ebe34246e7.tar.gz
upstream-9aff33e13f46094938feb4acd4b5a3ebe34246e7.tar.bz2
upstream-9aff33e13f46094938feb4acd4b5a3ebe34246e7.zip
Fix compilation for 2.4 kernels (#1836)
SVN-Revision: 7616
Diffstat (limited to 'package')
-rw-r--r--package/openswan/patches/140-linux_moduleparam.patch13
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 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 <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"