source: packages/net/openswan/patches/140-generated_autoconf.patch @ 26550

Last change on this file since 26550 was 26550, checked in by hauke, 5 years ago

openswan: add fix for 2.6.38

With 2.6.38.2 #include linux/config.h dont work anymore. It the same issue like Changeset r26237.

Thank you heil for the patch.

This closes #9156.

File size: 13.4 KB
  • linux/net/ipsec/ipsec_ocf.c

    a b  
    1515 * for more details. 
    1616 */ 
    1717 
    18 #ifndef AUTOCONF_INCLUDED 
    19 #include <linux/config.h> 
    20 #endif 
    2118#include <linux/version.h> 
     19#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     20#include <generated/autoconf.h> 
     21#else 
     22#include <linux/autoconf.h> 
     23#endif 
    2224 
    2325#define __NO_VERSION__ 
    2426#include <linux/module.h> 
  • linux/net/ipsec/pfkey_v2_ext_process.c

    a b  
    1919 *              Template from klips/net/ipsec/ipsec/ipsec_netlink.c. 
    2020 */ 
    2121 
    22 #ifndef AUTOCONF_INCLUDED 
    23 #include <linux/config.h> 
    24 #endif 
    2522#include <linux/version.h> 
     23#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     24#include <generated/autoconf.h> 
     25#else 
     26#include <linux/autoconf.h> 
     27#endif 
    2628#include <linux/kernel.h> /* printk() */ 
    2729 
    2830#include "openswan/ipsec_param.h" 
  • linux/net/ipsec/version.in.c

    a b  
    1515 */ 
    1616 
    1717#ifdef __KERNEL__ 
    18 # ifndef AUTOCONF_INCLUDED 
    19 #  include <linux/config.h> 
    20 # endif 
    2118# include <linux/version.h> 
     19# if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     20# include <generated/autoconf.h> 
     21# else 
     22# include <linux/autoconf.h> 
     23# endif 
    2224# define __NO_VERSION__ 
    2325# include <linux/module.h> 
    2426# if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,26) 
  • linux/net/ipsec/ipsec_ipcomp.c

    a b  
    1313 * for more details. 
    1414 */ 
    1515 
    16 #ifndef AUTOCONF_INCLUDED 
    17 #include <linux/config.h> 
    18 #endif 
    1916#include <linux/version.h> 
     17#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     18#include <generated/autoconf.h> 
     19#else 
     20#include <linux/autoconf.h> 
     21#endif 
    2022 
    2123#define __NO_VERSION__ 
    2224#include <linux/module.h> 
  • linux/net/ipsec/radij.c

    a b  
    5353 * Routines to build and maintain radix trees for routing lookups. 
    5454 */ 
    5555 
    56 #ifndef AUTOCONF_INCLUDED 
    57 #include <linux/config.h> 
    58 #endif 
    5956#include <linux/version.h> 
     57#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     58#include <generated/autoconf.h> 
     59#else 
     60#include <linux/autoconf.h> 
     61#endif 
    6062#include <linux/kernel.h> /* printk() */ 
    6163 
    6264#include "openswan/ipsec_param.h" 
  • linux/net/ipsec/ipsec_mast.c

    a b char ipsec_mast_c_version[] = "Please us 
    1717 
    1818#define __NO_VERSION__ 
    1919#include <linux/module.h> 
    20 #ifndef AUTOCONF_INCLUDED 
    21 #include <linux/config.h> 
    22 #endif  /* for CONFIG_IP_FORWARD */ 
     20#include <linux/version.h> 
     21#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     22#include <generated/autoconf.h> 
     23#else 
     24#include <linux/autoconf.h> 
     25#endif /* For Config IP-FORWARD */ 
    2326#include <linux/version.h> 
    2427#include <linux/kernel.h> /* printk() */ 
    2528 
  • linux/net/ipsec/ipsec_xmit.c

    a b  
    2121 
    2222#define __NO_VERSION__ 
    2323#include <linux/module.h> 
    24 #ifndef AUTOCONF_INCLUDED 
    25 #include <linux/config.h> 
    26 #endif  /* for CONFIG_IP_FORWARD */ 
     24#include <linux/version.h> 
     25#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     26#include <generated/autoconf.h> 
     27#else 
     28#include <linux/autoconf.h> 
     29#endif /* for CONFIG_IP_FORWARD */ 
    2730#include <linux/version.h> 
    2831#include <linux/kernel.h> /* printk() */ 
    2932 
  • linux/net/ipsec/ipsec_ipip.c

    a b  
    1313 * for more details. 
    1414 */ 
    1515 
    16 #ifndef AUTOCONF_INCLUDED 
    17 #include <linux/config.h> 
     16#include <linux/version.h> 
     17#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     18#include <generated/autoconf.h> 
     19#else 
     20#include <linux/autoconf.h> 
    1821#endif 
    1922#include <linux/version.h> 
    2023 
  • linux/net/ipsec/ipsec_snprintf.c

    a b  
    1818 * Split out from ipsec_proc.c. 
    1919 */ 
    2020 
    21 #ifndef AUTOCONF_INCLUDED 
    22 #include <linux/config.h> 
    23 #endif 
    2421#include <linux/version.h> 
     22#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     23#include <generated/autoconf.h> 
     24#else 
     25#include <linux/autoconf.h> 
     26#endif 
    2527#define __NO_VERSION__ 
    2628#include <linux/module.h> 
    2729#include <linux/kernel.h> /* printk() */ 
  • linux/net/ipsec/ipsec_xform.c

    a b  
    1616 * RCSID $Id: ipsec_xform.c,v 1.65 2005/04/29 05:10:22 mcr Exp $ 
    1717 */ 
    1818 
    19 #ifndef AUTOCONF_INCLUDED 
    20 #include <linux/config.h> 
    21 #endif 
    2219#include <linux/version.h> 
     20#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     21#include <generated/autoconf.h> 
     22#else 
     23#include <linux/autoconf.h> 
     24#endif 
    2325#include <linux/kernel.h> /* printk() */ 
    2426 
    2527#include "freeswan/ipsec_param.h" 
  • linux/net/ipsec/alg/ipsec_alg_cryptoapi.c

    a b  
    2727 *   modprobe ipsec_cryptoapi aes=128,128                (force these keylens) 
    2828 *   modprobe ipsec_cryptoapi des_ede3=0                 (everything but 3DES) 
    2929 */ 
    30 #ifndef AUTOCONF_INCLUDED 
    31 #include <linux/config.h> 
    32 #endif 
    3330#include <linux/version.h> 
    34  
     31#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     32#include <generated/autoconf.h> 
     33#else 
     34#include <linux/autoconf.h> 
     35#endif 
    3536/*       
    3637 *      special case: ipsec core modular with this static algo inside: 
    3738 *      must avoid MODULE magic for this file 
  • linux/net/ipsec/aes/ipsec_alg_aes.c

    a b  
    2121 *      PK:     make XCBC comply with latest draft (keylength) 
    2222 * 
    2323 */ 
    24 #ifndef AUTOCONF_INCLUDED 
    25 #include <linux/config.h> 
    26 #endif 
    2724#include <linux/version.h> 
     25#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     26#include <generated/autoconf.h> 
     27#else 
     28#include <linux/autoconf.h> 
     29#endif 
    2830 
    2931/*       
    3032 *      special case: ipsec core modular with this static algo inside: 
  • linux/net/ipsec/ipsec_proc.c

    a b  
    1818 * Split out from ipsec_init.c version 1.70. 
    1919 */ 
    2020 
    21 #ifndef AUTOCONF_INCLUDED 
    22 # include <linux/config.h> 
    23 #endif 
    2421#include <linux/version.h> 
     22#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     23#include <generated/autoconf.h> 
     24#else 
     25#include <linux/autoconf.h> 
     26#endif 
    2527#define __NO_VERSION__ 
    2628#include <linux/module.h> 
    2729#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) && LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,26) 
  • linux/net/ipsec/ipcomp.c

    a b  
    1818 
    1919/* SSS */ 
    2020 
    21 #ifndef AUTOCONF_INCLUDED 
    22 #include <linux/config.h> 
    23 #endif 
    2421#include <linux/version.h> 
     22#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     23#include <generated/autoconf.h> 
     24#else 
     25#include <linux/autoconf.h> 
     26#endif 
    2527 
    2628#define __NO_VERSION__ 
    2729#include <linux/module.h> 
  • linux/net/ipsec/ipsec_sa.c

    a b  
    1818 * 
    1919 */ 
    2020 
    21 #ifndef AUTOCONF_INCLUDED 
    22 #include <linux/config.h> 
    23 #endif 
    2421#include <linux/version.h> 
     22#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     23#include <generated/autoconf.h> 
     24#else 
     25#include <linux/autoconf.h> 
     26#endif 
    2527#include <linux/kernel.h> /* printk() */ 
    2628 
    2729#include "openswan/ipsec_param.h" 
  • linux/net/ipsec/des/ipsec_alg_3des.c

    a b  
    1818 * for more details. 
    1919 * 
    2020 */ 
    21 #ifndef AUTOCONF_INCLUDED 
    22 #include <linux/config.h> 
    23 #endif 
    2421#include <linux/version.h> 
     22#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     23#include <generated/autoconf.h> 
     24#else 
     25#include <linux/autoconf.h> 
     26#endif 
    2527 
    2628/*       
    2729 *      special case: ipsec core modular with this static algo inside: 
  • linux/net/ipsec/ipsec_radij.c

    a b  
    1515 * 
    1616 */ 
    1717 
    18 #ifndef AUTOCONF_INCLUDED 
    19 #include <linux/config.h> 
    20 #endif 
    2118#include <linux/version.h> 
     19#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     20#include <generated/autoconf.h> 
     21#else 
     22#include <linux/autoconf.h> 
     23#endif 
    2224#include <linux/kernel.h> /* printk() */ 
    2325 
    2426#include "openswan/ipsec_param.h" 
  • linux/net/ipsec/ipsec_rcv.c

    a b  
    2020 * for more details. 
    2121 */ 
    2222 
    23 #ifndef AUTOCONF_INCLUDED 
    24 #include <linux/config.h> 
    25 #endif 
    2623#include <linux/version.h> 
     24#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     25#include <generated/autoconf.h> 
     26#else 
     27#include <linux/autoconf.h> 
     28#endif 
    2729 
    2830#define __NO_VERSION__ 
    2931#include <linux/module.h> 
  • linux/net/ipsec/ipsec_esp.c

    a b  
    1313 * for more details. 
    1414 */ 
    1515 
    16 #ifndef AUTOCONF_INCLUDED 
    17 #include <linux/config.h> 
    18 #endif 
    1916#include <linux/version.h> 
     17#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     18#include <generated/autoconf.h> 
     19#else 
     20#include <linux/autoconf.h> 
     21#endif 
    2022 
    2123#define __NO_VERSION__ 
    2224#include <linux/module.h> 
  • linux/net/ipsec/ipsec_life.c

    a b  
    3030 
    3131#define __NO_VERSION__ 
    3232#include <linux/module.h> 
    33 #ifndef AUTOCONF_INCLUDED 
    34 #include <linux/config.h> 
    35 #endif  /* for CONFIG_IP_FORWARD */ 
     33#include <linux/version.h> 
     34#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     35#include <generated/autoconf.h> 
     36#else 
     37#include <linux/autoconf.h> 
     38#endif /* for CONFIG_IP_FORWARD */ 
    3639#include <linux/version.h> 
    3740#include <linux/kernel.h> /* printk() */ 
    3841 
  • linux/net/ipsec/ipsec_alg.c

    a b  
    1818 * for more details. 
    1919 * 
    2020 */ 
    21 #ifndef AUTOCONF_INCLUDED 
    22 #include <linux/config.h> 
    23 #endif 
    2421#include <linux/version.h> 
     22#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     23#include <generated/autoconf.h> 
     24#else 
     25#include <linux/autoconf.h> 
     26#endif 
    2527 
    2628#define __NO_VERSION__ 
    2729#include <linux/module.h> 
  • linux/net/ipsec/pfkey_v2.c

    a b  
    2222#define __NO_VERSION__ 
    2323#include <linux/module.h> 
    2424#include <linux/version.h> 
    25 #ifndef AUTOCONF_INCLUDED 
    26 # include <linux/config.h> 
     25#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     26#include <generated/autoconf.h> 
     27#else 
     28#include <linux/autoconf.h> 
    2729#endif 
    2830#include <linux/kernel.h> 
    2931 
  • linux/net/ipsec/ipsec_tunnel.c

    a b  
    2020 
    2121#define __NO_VERSION__ 
    2222#include <linux/module.h> 
    23 #ifndef AUTOCONF_INCLUDED 
    24 #include <linux/config.h> 
    25 #endif  /* for CONFIG_IP_FORWARD */ 
     23#include <linux/version.h> 
     24#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     25#include <generated/autoconf.h> 
     26#else 
     27#include <linux/autoconf.h> 
     28#endif /* for CONFIG_IP_FORWARD */ 
    2629#include <linux/version.h> 
    2730#include <linux/kernel.h> /* printk() */ 
    2831 
  • linux/include/openswan/ipsec_kversion.h

    a b  
    4343 * We use a lot of config defines,  on older kernels that means we 
    4444 * need to include config.h 
    4545 */ 
    46 #ifndef AUTOCONF_INCLUDED 
    47 #include <linux/config.h> 
     46#include <linux/version.h> 
     47#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     48#include <generated/autoconf.h> 
     49#else 
     50#include <linux/autoconf.h> 
    4851#endif 
    4952 
    5053#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) 
  • linux/include/openswan/ipsec_rcv.h

    a b  
    3636/* struct options; */ 
    3737 
    3838#define __NO_VERSION__ 
    39 #ifndef AUTOCONF_INCLUDED 
    40 #include <linux/config.h> 
    41 #endif  /* for CONFIG_IP_FORWARD */ 
     39#include <linux/version.h> 
     40#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     41#include <generated/autoconf.h> 
     42#else 
     43#include <linux/autoconf.h> 
     44#endif /* for CONFIG_IP_FORWARD */ 
    4245#ifdef CONFIG_MODULES 
    4346#include <linux/module.h> 
    4447#endif 
  • linux/net/ipsec/ipsec_ocf.h

    a b  
    1818 * for more details. 
    1919 */ 
    2020 
    21 #ifndef AUTOCONF_INCLUDED 
    22 #include <linux/config.h> 
    23 #endif 
    2421#include <linux/version.h> 
     22#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     23#include <generated/autoconf.h> 
     24#else 
     25#include <linux/autoconf.h> 
     26#endif 
    2527#include <linux/kernel.h> 
    2628 
    2729#ifdef CONFIG_KLIPS_OCF 
  • linux/net/ipsec/ipsec_ah.c

    a b  
    1313 * for more details. 
    1414 */ 
    1515 
    16 #ifndef AUTOCONF_INCLUDED 
    17 #include <linux/config.h> 
    18 #endif 
    1916#include <linux/version.h> 
     17#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     18#include <generated/autoconf.h> 
     19#else 
     20#include <linux/autoconf.h> 
     21#endif 
    2022 
    2123#define __NO_VERSION__ 
    2224#include <linux/module.h> 
  • linux/net/ipsec/pfkey_v2_parser.c

    a b  
    2222 */ 
    2323 
    2424 
    25 #ifndef AUTOCONF_INCLUDED 
    26 #include <linux/config.h> 
    27 #endif 
    2825#include <linux/version.h> 
     26#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     27#include <generated/autoconf.h> 
     28#else 
     29#include <linux/autoconf.h> 
     30#endif 
    2931#include <linux/kernel.h> /* printk() */ 
    3032 
    3133#include "openswan/ipsec_param.h" 
  • linux/net/ipsec/ipsec_init.c

    a b  
    1818 * 
    1919 */ 
    2020 
    21 #ifndef AUTOCONF_INCLUDED 
    22 #include <linux/config.h> 
    23 #endif 
    2421#include <linux/version.h> 
     22#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     23#include <generated/autoconf.h> 
     24#else 
     25#include <linux/autoconf.h> 
     26#endif 
    2527#include <linux/module.h> 
    2628#include <linux/kernel.h> /* printk() */ 
    2729 
  • linux/net/ipsec/ipsec_alg_cryptoapi.c

    a b  
    2727 *   modprobe ipsec_cryptoapi aes=128,128                (force these keylens) 
    2828 *   modprobe ipsec_cryptoapi des_ede3=0                 (everything but 3DES) 
    2929 */ 
    30 #ifndef AUTOCONF_INCLUDED 
    31 #include <linux/config.h> 
    32 #endif 
    3330#include <linux/version.h> 
     31#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     32#include <generated/autoconf.h> 
     33#else 
     34#include <linux/autoconf.h> 
     35#endif 
    3436 
    3537/*       
    3638 *      special case: ipsec core modular with this static algo inside: 
  • linux/include/ocf-compat.h

    a b  
    3434 */ 
    3535/****************************************************************************/ 
    3636#ifdef __KERNEL__ 
    37 #ifndef AUTOCONF_INCLUDED 
    38 #include <linux/config.h> 
     37#include <linux/version.h> 
     38#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) 
     39#include <generated/autoconf.h> 
     40#else 
     41#include <linux/autoconf.h> 
    3942#endif 
    4043 
    4144/* 
Note: See TracBrowser for help on using the repository browser.