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
5 # define net_device device
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
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
23 * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting