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

Collapse All | Expand All

(-)vmnet-only.orig/vmnetInt.h (-3 / +8 lines)
Lines 78-87 Link Here
78
78
79
extern struct proto vmnet_proto;
79
extern struct proto vmnet_proto;
80
#ifdef VMW_NETDEV_HAS_NET
80
#ifdef VMW_NETDEV_HAS_NET
81
#   define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \
81
#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0)
82
                                                PF_NETLINK, _pri, &vmnet_proto)
82
# define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \
83
                        PF_NETLINK, _pri, &vmnet_proto, 1)
83
#else
84
#else
84
#   define compat_sk_alloc(_bri, _pri) sk_alloc(PF_NETLINK, _pri, &vmnet_proto, 1)
85
# define compat_sk_alloc(_bri, _pri) sk_alloc(&init_net, \
86
                        PF_NETLINK, _pri, &vmnet_proto)
87
#endif
88
#else
89
# define compat_sk_alloc(_bri, _pri) sk_alloc(PF_NETLINK, _pri, &vmnet_proto, 1)
85
#endif
90
#endif
86
91
87
92

Return to bug 531682