2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/include/ocf-compat.h
|
|
|
|
+++ b/linux/include/ocf-compat.h
|
|
|
|
@@ -35,10 +35,11 @@
|
|
|
|
/****************************************************************************/
|
|
|
|
#ifdef __KERNEL__
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
|
|
|
/*
|
|
|
|
* fake some BSD driver interface stuff specifically for OCF use
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/include/openswan/ipsec_kversion.h
|
|
|
|
+++ b/linux/include/openswan/ipsec_kversion.h
|
2012-04-21 02:17:06 +00:00
|
|
|
@@ -57,8 +57,10 @@
|
2011-08-06 12:17:56 +00:00
|
|
|
* We use a lot of config defines, on older kernels that means we
|
|
|
|
* need to include config.h
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2012-04-21 02:17:06 +00:00
|
|
|
-# include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
2012-04-21 02:17:06 +00:00
|
|
|
|
|
|
|
#if !defined(RHEL_RELEASE_CODE)
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/aes/ipsec_alg_aes.c
|
|
|
|
+++ b/linux/net/ipsec/aes/ipsec_alg_aes.c
|
|
|
|
@@ -22,8 +22,10 @@
|
|
|
|
*
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/version.h>
|
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/des/ipsec_alg_3des.c
|
|
|
|
+++ b/linux/net/ipsec/des/ipsec_alg_3des.c
|
|
|
|
@@ -19,8 +19,10 @@
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
#include <linux/version.h>
|
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/version.h>
|
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/ipcomp.c
|
|
|
|
+++ b/linux/net/ipsec/ipcomp.c
|
|
|
|
@@ -19,10 +19,11 @@
|
|
|
|
/* SSS */
|
2011-04-09 16:18:39 +00:00
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
#include <linux/version.h>
|
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
|
|
|
#endif
|
2011-08-06 12:17:56 +00:00
|
|
|
-
|
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
--- a/linux/net/ipsec/ipsec_ah.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_ah.c
|
|
|
|
@@ -14,10 +14,11 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
2011-04-09 16:18:39 +00:00
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/kernel.h> /* printk() */
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/ipsec_alg.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_alg.c
|
|
|
|
@@ -19,10 +19,11 @@
|
|
|
|
*
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/ipsec_alg_cryptoapi.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_alg_cryptoapi.c
|
2011-11-03 21:06:13 +00:00
|
|
|
@@ -26,10 +26,11 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
* modprobe ipsec_cryptoapi des_ede3=0 (everything but 3DES)
|
|
|
|
*/
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
2011-04-09 16:18:39 +00:00
|
|
|
/*
|
|
|
|
* special case: ipsec core modular with this static algo inside:
|
|
|
|
* must avoid MODULE magic for this file
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/ipsec_esp.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_esp.c
|
|
|
|
@@ -14,10 +14,11 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
2011-08-06 12:17:56 +00:00
|
|
|
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
--- a/linux/net/ipsec/ipsec_init.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_init.c
|
|
|
|
@@ -19,8 +19,10 @@
|
|
|
|
*/
|
2011-04-09 16:18:39 +00:00
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
#include <linux/version.h>
|
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
|
|
|
#endif
|
|
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
--- a/linux/net/ipsec/ipsec_ipcomp.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_ipcomp.c
|
|
|
|
@@ -14,10 +14,11 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
2011-04-09 16:18:39 +00:00
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
--- a/linux/net/ipsec/ipsec_ipip.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_ipip.c
|
|
|
|
@@ -14,10 +14,11 @@
|
|
|
|
*/
|
2011-04-09 16:18:39 +00:00
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
2011-04-09 16:18:39 +00:00
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
--- a/linux/net/ipsec/ipsec_ocf.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_ocf.c
|
|
|
|
@@ -16,10 +16,11 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/ipsec_ocf.h
|
|
|
|
+++ b/linux/net/ipsec/ipsec_ocf.h
|
|
|
|
@@ -19,8 +19,10 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
2011-08-06 12:17:56 +00:00
|
|
|
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
#include <linux/kernel.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
|
|
|
|
--- a/linux/net/ipsec/ipsec_radij.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_radij.c
|
2012-04-21 02:17:06 +00:00
|
|
|
@@ -21,8 +21,10 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
|
|
|
|
--- a/linux/net/ipsec/ipsec_rcv.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_rcv.c
|
2011-08-06 12:17:56 +00:00
|
|
|
@@ -21,10 +21,11 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
-
|
2011-04-09 16:18:39 +00:00
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,26)
|
|
|
|
--- a/linux/net/ipsec/ipsec_sa.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_sa.c
|
|
|
|
@@ -19,8 +19,10 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/ipsec_snprintf.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_snprintf.c
|
|
|
|
@@ -19,8 +19,10 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
|
|
|
#endif
|
|
|
|
#define __NO_VERSION__
|
|
|
|
#include <linux/module.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/ipsec_tunnel.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_tunnel.c
|
|
|
|
@@ -24,8 +24,10 @@
|
|
|
|
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,26)
|
|
|
|
# include <linux/moduleparam.h>
|
|
|
|
#endif
|
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/ipsec_xform.c
|
|
|
|
+++ b/linux/net/ipsec/ipsec_xform.c
|
2012-04-21 02:17:06 +00:00
|
|
|
@@ -15,8 +15,10 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
#include <linux/version.h>
|
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
|
|
|
#endif
|
2011-08-06 12:17:56 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
2011-04-09 16:18:39 +00:00
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/pfkey_v2_ext_process.c
|
|
|
|
+++ b/linux/net/ipsec/pfkey_v2_ext_process.c
|
|
|
|
@@ -20,8 +20,10 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
|
|
|
-#include <linux/config.h>
|
2011-04-09 16:18:39 +00:00
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
|
|
|
#include <linux/kernel.h> /* printk() */
|
2011-04-09 16:18:39 +00:00
|
|
|
|
|
|
|
--- a/linux/net/ipsec/pfkey_v2_parser.c
|
|
|
|
+++ b/linux/net/ipsec/pfkey_v2_parser.c
|
2011-08-06 12:17:56 +00:00
|
|
|
@@ -23,8 +23,10 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
|
|
|
|
|
|
|
|
#include <linux/version.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
2011-08-06 12:17:56 +00:00
|
|
|
#endif
|
2011-04-09 16:18:39 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
--- a/linux/net/ipsec/radij.c
|
|
|
|
+++ b/linux/net/ipsec/radij.c
|
|
|
|
@@ -54,8 +54,10 @@
|
2011-04-09 16:18:39 +00:00
|
|
|
*/
|
|
|
|
|
2011-08-06 12:17:56 +00:00
|
|
|
#include <linux/version.h>
|
|
|
|
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,38) && !defined(AUTOCONF_INCLUDED)
|
2011-04-09 16:18:39 +00:00
|
|
|
-#include <linux/config.h>
|
|
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
|
|
|
|
+#include <generated/autoconf.h>
|
|
|
|
+#else
|
|
|
|
+#include <linux/autoconf.h>
|
|
|
|
#endif
|
2011-08-06 12:17:56 +00:00
|
|
|
#include <linux/kernel.h> /* printk() */
|
2011-04-09 16:18:39 +00:00
|
|
|
|