Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 301320 | Differences between
and this patch

Collapse All | Expand All

(-)vmblock-only/autoconf/cachecreate.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
/*
26
/*
23
 * All kernels before 2.6.22 take 6 arguments.  All kernels since
27
 * All kernels before 2.6.22 take 6 arguments.  All kernels since
(-)vmblock-only/autoconf/cachector.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
/*
26
/*
23
 * Between 2.6.23 and 2.6.24-rc1 ctor prototype was changed from
27
 * Between 2.6.23 and 2.6.24-rc1 ctor prototype was changed from
(-)vmblock-only/autoconf/cachector1.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
/*
26
/*
23
 * Between 2.6.27-rc1 and 2.6.27-rc2 ctor prototype was changed from
27
 * Between 2.6.27-rc1 and 2.6.27-rc2 ctor prototype was changed from
(-)vmblock-only/autoconf/epoll.c (-1 / +5 lines)
Lines 22-29 Link Here
22
 * never had it, but some distros backported epoll patch.
22
 * never had it, but some distros backported epoll patch.
23
 */
23
 */
24
24
25
#include <linux/autoconf.h>
26
#include <linux/version.h>
25
#include <linux/version.h>
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
27
#include <linux/autoconf.h>
28
#else
29
#include <generated/autoconf.h>
30
#endif
27
31
28
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
32
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
29
#include <linux/poll.h>
33
#include <linux/poll.h>
(-)vmblock-only/autoconf/filldir1.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
23
#include <linux/fs.h>
27
#include <linux/fs.h>
(-)vmblock-only/autoconf/geninclude.c (+5 lines)
Lines 16-22 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
19
#include <linux/autoconf.h>
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
20
25
21
#ifdef CONFIG_X86_VOYAGER
26
#ifdef CONFIG_X86_VOYAGER
22
APATH/mach-voyager
27
APATH/mach-voyager
(-)vmblock-only/autoconf/getsb1.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
23
27
(-)vmblock-only/autoconf/setnice.c (-1 / +5 lines)
Lines 20-27 Link Here
20
 * set_user_nice appeared in 2.4.21.  But some distros
20
 * set_user_nice appeared in 2.4.21.  But some distros
21
 * backported it to older kernels.
21
 * backported it to older kernels.
22
 */
22
 */
23
#include <linux/autoconf.h>
24
#include <linux/version.h>
23
#include <linux/version.h>
24
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
25
#include <linux/autoconf.h>
26
#else
27
#include <generated/autoconf.h>
28
#endif
25
29
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21)
30
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21)
27
#include <linux/sched.h>
31
#include <linux/sched.h>
(-)vmblock-only/autoconf/statfs1.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
23
#include <linux/fs.h>
27
#include <linux/fs.h>
(-)vmblock-only/include/driver-config.h.old (+5 lines)
Lines 32-38 Link Here
32
#define INCLUDE_ALLOW_VMNIXMOD
32
#define INCLUDE_ALLOW_VMNIXMOD
33
#include "includeCheck.h"
33
#include "includeCheck.h"
34
#include <linux/version.h>
35
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
34
#include <linux/autoconf.h>
36
#include <linux/autoconf.h>
37
#else
38
#include <generated/autoconf.h>
39
#endif
35
#include "compat_version.h"
40
#include "compat_version.h"
36
41
37
/*
42
/*
(-)vmci-only/autoconf/epoll.c (-1 / +5 lines)
Lines 22-29 Link Here
22
 * never had it, but some distros backported epoll patch.
22
 * never had it, but some distros backported epoll patch.
23
 */
23
 */
24
24
25
#include <linux/autoconf.h>
26
#include <linux/version.h>
25
#include <linux/version.h>
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
27
#include <linux/autoconf.h>
28
#else
29
#include <generated/autoconf.h>
30
#endif
27
31
28
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
32
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
29
#include <linux/poll.h>
33
#include <linux/poll.h>
(-)vmci-only/autoconf/geninclude.c (+5 lines)
Lines 16-22 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
19
#include <linux/autoconf.h>
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
20
25
21
#ifdef CONFIG_X86_VOYAGER
26
#ifdef CONFIG_X86_VOYAGER
22
APATH/mach-voyager
27
APATH/mach-voyager
(-)vmci-only/include/driver-config.h.old (+5 lines)
Lines 32-38 Link Here
32
#define INCLUDE_ALLOW_VMNIXMOD
32
#define INCLUDE_ALLOW_VMNIXMOD
33
#include "includeCheck.h"
33
#include "includeCheck.h"
34
34
35
#include <linux/version.h>
36
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
35
#include <linux/autoconf.h>
37
#include <linux/autoconf.h>
38
#else
39
#include <generated/autoconf.h>
40
#endif
36
#include "compat_version.h"
41
#include "compat_version.h"
37
42
38
/*
43
/*
(-)vmmon-only/autoconf/epoll.c (-1 / +5 lines)
Lines 22-29 Link Here
22
 * never had it, but some distros backported epoll patch.
22
 * never had it, but some distros backported epoll patch.
23
 */
23
 */
24
24
25
#include <linux/autoconf.h>
26
#include <linux/version.h>
25
#include <linux/version.h>
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
27
#include <linux/autoconf.h>
28
#else
29
#include <generated/autoconf.h>
30
#endif
27
31
28
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
32
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
29
#include <linux/poll.h>
33
#include <linux/poll.h>
(-)vmmon-only/autoconf/geninclude.c (+5 lines)
Lines 16-22 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
19
#include <linux/autoconf.h>
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
20
25
21
#ifdef CONFIG_X86_VOYAGER
26
#ifdef CONFIG_X86_VOYAGER
22
APATH/mach-voyager
27
APATH/mach-voyager
(-)vmmon-only/autoconf/nopage1.c (-1 / +5 lines)
Lines 21-28 Link Here
21
 * it uses new prototype.  For 2.6.1 (and its -rc) and older do
21
 * it uses new prototype.  For 2.6.1 (and its -rc) and older do
22
 * compile test.
22
 * compile test.
23
 */
23
 */
24
#include <linux/autoconf.h>
25
#include <linux/version.h>
24
#include <linux/version.h>
25
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
26
#include <linux/autoconf.h>
27
#else
28
#include <generated/autoconf.h>
29
#endif
26
30
27
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 2)
31
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 2)
28
#include <linux/mm.h>
32
#include <linux/mm.h>
(-)vmmon-only/autoconf/setnice.c (-1 / +5 lines)
Lines 20-27 Link Here
20
 * set_user_nice appeared in 2.4.21.  But some distros
20
 * set_user_nice appeared in 2.4.21.  But some distros
21
 * backported it to older kernels.
21
 * backported it to older kernels.
22
 */
22
 */
23
#include <linux/autoconf.h>
24
#include <linux/version.h>
23
#include <linux/version.h>
24
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
25
#include <linux/autoconf.h>
26
#else
27
#include <generated/autoconf.h>
28
#endif
25
29
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21)
30
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21)
27
#include <linux/sched.h>
31
#include <linux/sched.h>
(-)vmmon-only/autoconf/smpcall.c (-1 / +5 lines)
Lines 21-28 Link Here
21
 * Change happened between 2.6.26 and 2.6.27-rc1.
21
 * Change happened between 2.6.26 and 2.6.27-rc1.
22
 */
22
 */
23
23
24
#include <linux/autoconf.h>
25
#include <linux/version.h>
24
#include <linux/version.h>
25
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
26
#include <linux/autoconf.h>
27
#else
28
#include <generated/autoconf.h>
29
#endif
26
30
27
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
31
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 26)
28
#   error This compile test intentionally fails.
32
#   error This compile test intentionally fails.
(-)vmmon-only/include/driver-config.h.old (+5 lines)
Lines 32-38 Link Here
32
#define INCLUDE_ALLOW_VMNIXMOD
32
#define INCLUDE_ALLOW_VMNIXMOD
33
#include "includeCheck.h"
33
#include "includeCheck.h"
34
34
35
#include <linux/version.h>
36
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
35
#include <linux/autoconf.h>
37
#include <linux/autoconf.h>
38
#else
39
#include <generated/autoconf.h>
40
#endif
36
#include "compat_version.h"
41
#include "compat_version.h"
37
42
38
/*
43
/*
(-)vmnet-only/epoll.c (-1 / +5 lines)
Lines 22-29 Link Here
22
 * never had it, but some distros backported epoll patch.
22
 * never had it, but some distros backported epoll patch.
23
 */
23
 */
24
24
25
#include <linux/autoconf.h>
26
#include <linux/version.h>
25
#include <linux/version.h>
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
27
#include <linux/autoconf.h>
28
#else
29
#include <generated/autoconf.h>
30
#endif
27
31
28
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
32
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
29
#include <linux/poll.h>
33
#include <linux/poll.h>
(-)vmnet-only/geninclude.c (+5 lines)
Lines 16-22 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
19
#include <linux/autoconf.h>
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
20
25
21
#ifdef CONFIG_X86_VOYAGER
26
#ifdef CONFIG_X86_VOYAGER
22
APATH/mach-voyager
27
APATH/mach-voyager
(-)vmnet-only/netdev_has_dev_net.c (-1 / +5 lines)
Lines 21-28 Link Here
21
 * It appeared between 2.6.25 and 2.6.26-rc1.
21
 * It appeared between 2.6.25 and 2.6.26-rc1.
22
 */
22
 */
23
23
24
#include <linux/autoconf.h>
25
#include <linux/version.h>
24
#include <linux/version.h>
25
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
26
#include <linux/autoconf.h>
27
#else
28
#include <generated/autoconf.h>
29
#endif
26
30
27
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
31
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 25)
28
#   error This compile test intentionally fails.
32
#   error This compile test intentionally fails.
(-)vmnet-only/netdev_has_net.c (-1 / +5 lines)
Lines 27-34 Link Here
27
 * as hopefully in few weeks all 2.6.24-rc1 users will be gone.
27
 * as hopefully in few weeks all 2.6.24-rc1 users will be gone.
28
 */
28
 */
29
29
30
#include <linux/autoconf.h>
31
#include <linux/version.h>
30
#include <linux/version.h>
31
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
32
#include <linux/autoconf.h>
33
#else
34
#include <generated/autoconf.h>
35
#endif
32
36
33
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
37
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
34
#   error This compile test intentionally fails.
38
#   error This compile test intentionally fails.
(-)vmnet-only/nfhook_uses_skb.c (-1 / +5 lines)
Lines 23-30 Link Here
23
 * 2.6.24-rc1.
23
 * 2.6.24-rc1.
24
 */
24
 */
25
25
26
#include <linux/autoconf.h>
27
#include <linux/version.h>
26
#include <linux/version.h>
27
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
28
#include <linux/autoconf.h>
29
#else
30
#include <generated/autoconf.h>
31
#endif
28
32
29
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
33
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 23)
30
#   error This compile test intentionally fails.
34
#   error This compile test intentionally fails.
(-)vmnet-only/setnice.c (-1 / +5 lines)
Lines 20-27 Link Here
20
 * set_user_nice appeared in 2.4.21.  But some distros
20
 * set_user_nice appeared in 2.4.21.  But some distros
21
 * backported it to older kernels.
21
 * backported it to older kernels.
22
 */
22
 */
23
#include <linux/autoconf.h>
24
#include <linux/version.h>
23
#include <linux/version.h>
24
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
25
#include <linux/autoconf.h>
26
#else
27
#include <generated/autoconf.h>
28
#endif
25
29
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21)
30
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21)
27
#include <linux/sched.h>
31
#include <linux/sched.h>
(-)vmnet-only/sk_alloc.c (-1 / +5 lines)
Lines 21-28 Link Here
21
 * This API change was introduced between 2.6.12-rc1 and 2.6.12-rc2.
21
 * This API change was introduced between 2.6.12-rc1 and 2.6.12-rc2.
22
 */
22
 */
23
23
24
#include <linux/autoconf.h>
25
#include <linux/version.h>
24
#include <linux/version.h>
25
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
26
#include <linux/autoconf.h>
27
#else
28
#include <generated/autoconf.h>
29
#endif
26
30
27
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 13)
31
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 13)
28
#include <net/sock.h>
32
#include <net/sock.h>
(-)vmnet-only/skblin.c (-1 / +5 lines)
Lines 20-27 Link Here
20
 * Detect whether skb_linearize takes one or two arguments.
20
 * Detect whether skb_linearize takes one or two arguments.
21
 */
21
 */
22
22
23
#include <linux/autoconf.h>
24
#include <linux/version.h>
23
#include <linux/version.h>
24
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
25
#include <linux/autoconf.h>
26
#else
27
#include <generated/autoconf.h>
28
#endif
25
29
26
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 17)
30
#if LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 17)
27
/*
31
/*
(-)vmnet-only/driver-config.h.old (+5 lines)
Lines 32-38 Link Here
32
#define INCLUDE_ALLOW_VMNIXMOD
32
#define INCLUDE_ALLOW_VMNIXMOD
33
#include "includeCheck.h"
33
#include "includeCheck.h"
34
34
35
#include <linux/version.h>
36
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
35
#include <linux/autoconf.h>
37
#include <linux/autoconf.h>
38
#else
39
#include <generated/autoconf.h>
40
#endif
36
#include "compat_version.h"
41
#include "compat_version.h"
37
42
38
/*
43
/*
(-)vsock-only/autoconf/cachecreate.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
/*
26
/*
23
 * All kernels before 2.6.22 take 6 arguments.  All kernels since
27
 * All kernels before 2.6.22 take 6 arguments.  All kernels since
(-)vsock-only/autoconf/epoll.c (-1 / +5 lines)
Lines 22-29 Link Here
22
 * never had it, but some distros backported epoll patch.
22
 * never had it, but some distros backported epoll patch.
23
 */
23
 */
24
24
25
#include <linux/autoconf.h>
26
#include <linux/version.h>
25
#include <linux/version.h>
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
27
#include <linux/autoconf.h>
28
#else
29
#include <generated/autoconf.h>
30
#endif
27
31
28
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
32
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 0)
29
#include <linux/poll.h>
33
#include <linux/poll.h>
(-)vsock-only/autoconf/filldir1.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 20)
23
#include <linux/fs.h>
27
#include <linux/fs.h>
(-)vsock-only/autoconf/geninclude.c (+5 lines)
Lines 16-22 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
19
#include <linux/autoconf.h>
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
20
25
21
#ifdef CONFIG_X86_VOYAGER
26
#ifdef CONFIG_X86_VOYAGER
22
APATH/mach-voyager
27
APATH/mach-voyager
(-)vsock-only/autoconf/getsb1.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
23
27
(-)vsock-only/autoconf/setnice.c (-1 / +5 lines)
Lines 20-27 Link Here
20
 * set_user_nice appeared in 2.4.21.  But some distros
20
 * set_user_nice appeared in 2.4.21.  But some distros
21
 * backported it to older kernels.
21
 * backported it to older kernels.
22
 */
22
 */
23
#include <linux/autoconf.h>
24
#include <linux/version.h>
23
#include <linux/version.h>
24
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
25
#include <linux/autoconf.h>
26
#else
27
#include <generated/autoconf.h>
28
#endif
25
29
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21)
30
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 4, 21)
27
#include <linux/sched.h>
31
#include <linux/sched.h>
(-)vsock-only/autoconf/sk_filter.c (-1 / +5 lines)
Lines 23-30 Link Here
23
 * This test will fail to build on kernels with the new interface.
23
 * This test will fail to build on kernels with the new interface.
24
 */
24
 */
25
25
26
#include <linux/autoconf.h>
27
#include <linux/version.h>
26
#include <linux/version.h>
27
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
28
#include <linux/autoconf.h>
29
#else
30
#include <generated/autoconf.h>
31
#endif
28
32
29
/*
33
/*
30
 * We'd restrict this test to 2.4.21 and earlier kernels, but Mandrake's
34
 * We'd restrict this test to 2.4.21 and earlier kernels, but Mandrake's
(-)vsock-only/autoconf/statfs1.c (-1 / +5 lines)
Lines 16-23 Link Here
16
 *
16
 *
17
 *********************************************************/
17
 *********************************************************/
18
18
19
#include <linux/autoconf.h>
20
#include <linux/version.h>
19
#include <linux/version.h>
20
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
21
#include <linux/autoconf.h>
22
#else
23
#include <generated/autoconf.h>
24
#endif
21
25
22
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
26
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19)
23
#include <linux/fs.h>
27
#include <linux/fs.h>
(-)vsock-only/include/driver-config.h.old (+5 lines)
Lines 32-38 Link Here
32
#define INCLUDE_ALLOW_VMNIXMOD
32
#define INCLUDE_ALLOW_VMNIXMOD
33
#include "includeCheck.h"
33
#include "includeCheck.h"
34
34
35
#include <linux/version.h>
36
#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 33)
35
#include <linux/autoconf.h>
37
#include <linux/autoconf.h>
38
#else
39
#include <generated/autoconf.h>
40
#endif
36
#include "compat_version.h"
41
#include "compat_version.h"
37
42
38
/*
43
/*

Return to bug 301320