updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vmware-patch / vmnet-3.1.1.diff
blob7eccf6ba39e40faec712c2848e43fd7658c93c13
1 diff -u -r vmnet-only/compat_netdevice.h vmnet-only/compat_netdevice.h
2 --- vmnet-only/compat_netdevice.h 2011-03-26 06:37:29.000000000 +0100
3 +++ vmnet-only/compat_netdevice.h 2011-08-10 08:17:57.000000000 +0200
4 @@ -47,6 +47,19 @@
5 # define net_device device
6 #endif
8 +/* it looks like these have been removed from the kernel 3.1
9 + * probably because the "transition" is considered complete.
10 + * so to keep this source compatible we just redefine them like they were
11 + * previously
12 + */
13 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0)
14 +#define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev
15 + functions are available. */
16 +#define HAVE_FREE_NETDEV /* free_netdev() */
17 +#define HAVE_NETDEV_PRIV /* netdev_priv() */
18 +#define HAVE_NETIF_QUEUE
19 +#define HAVE_NET_DEVICE_OPS
20 +#endif
23 * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting