diff options
author | 2011-10-26 00:46:54 +0000 | |
---|---|---|
committer | 2011-10-26 00:46:54 +0000 | |
commit | 5833980110aac3a384e62a84e7375a30092a1425 (patch) | |
tree | 9c315365b7b3571db1a588f3d9c2b6ad4c81d056 /app-emulation/vmware-modules/files | |
parent | Fix manifest (diff) | |
download | vmware-5833980110aac3a384e62a84e7375a30092a1425.tar.gz vmware-5833980110aac3a384e62a84e7375a30092a1425.tar.bz2 vmware-5833980110aac3a384e62a84e7375a30092a1425.zip |
Bug 384105.
svn path=/trunk/; revision=511
Diffstat (limited to 'app-emulation/vmware-modules/files')
-rw-r--r-- | app-emulation/vmware-modules/files/264-netdevice.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/files/264-netdevice.patch b/app-emulation/vmware-modules/files/264-netdevice.patch new file mode 100644 index 0000000..35231a3 --- /dev/null +++ b/app-emulation/vmware-modules/files/264-netdevice.patch @@ -0,0 +1,24 @@ +diff --git a/vmnet-only/compat_netdevice.h b/vmnet-only/compat_netdevice.h +index 7a56304..9ff4548 100644 +--- a/vmnet-only/compat_netdevice.h ++++ b/vmnet-only/compat_netdevice.h +@@ -47,6 +47,19 @@ + # define net_device device + #endif + ++/* it looks like these have been removed from the kernel 3.1 ++ * probably because the "transition" is considered complete. ++ * so to keep this source compatible we just redefine them like they were ++ * previously ++ */ ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 1, 0) ++#define HAVE_ALLOC_NETDEV /* feature macro: alloc_xxxdev ++ functions are available. */ ++#define HAVE_FREE_NETDEV /* free_netdev() */ ++#define HAVE_NETDEV_PRIV /* netdev_priv() */ ++#define HAVE_NETIF_QUEUE ++#define HAVE_NET_DEVICE_OPS ++#endif + + /* + * SET_MODULE_OWNER appeared sometime during 2.3.x. It was setting |