commit:     195bd13fb5abc21ec6c31396b0a7018df192796d
Author:     Evan Teran <evan.teran <AT> gmail <DOT> com>
AuthorDate: Sat Oct 11 15:51:14 2014 +0000
Commit:     Evan Teran <evan.teran <AT> gmail <DOT> com>
CommitDate: Sat Oct 11 15:51:14 2014 +0000
URL:        
http://sources.gentoo.org/gitweb/?p=proj/vmware.git;a=commit;h=195bd13f

now compiles on 3.17.0 :-)

---
 app-emulation/vmware-modules/files/279-3.17-00-netdev.patch | 12 ++++++++++++
 app-emulation/vmware-modules/vmware-modules-279.2-r1.ebuild |  1 +
 2 files changed, 13 insertions(+)

diff --git a/app-emulation/vmware-modules/files/279-3.17-00-netdev.patch 
b/app-emulation/vmware-modules/files/279-3.17-00-netdev.patch
new file mode 100644
index 0000000..fbe1741
--- /dev/null
+++ b/app-emulation/vmware-modules/files/279-3.17-00-netdev.patch
@@ -0,0 +1,12 @@
+diff -rupN vmnet-only/netif.c vmnet-only.new/netif.c
+--- vmnet-only/netif.c 2013-11-06 00:40:52.000000000 -0500
++++ vmnet-only.new/netif.c     2014-10-09 17:29:12.361307961 -0400
+@@ -149,7 +149,7 @@ VNetNetIf_Create(char *devName,  // IN:
+    memcpy(deviceName, devName, sizeof deviceName);
+    NULL_TERMINATE_STRING(deviceName);
+ 
+-   dev = alloc_netdev(sizeof *netIf, deviceName, VNetNetIfSetup);
++   dev = alloc_netdev(sizeof *netIf, deviceName, NET_NAME_UNKNOWN, 
VNetNetIfSetup);
+    if (!dev) {
+       retval = -ENOMEM;
+       goto out;

diff --git a/app-emulation/vmware-modules/vmware-modules-279.2-r1.ebuild 
b/app-emulation/vmware-modules/vmware-modules-279.2-r1.ebuild
index e5875a7..d6cc8ea 100644
--- a/app-emulation/vmware-modules/vmware-modules-279.2-r1.ebuild
+++ b/app-emulation/vmware-modules/vmware-modules-279.2-r1.ebuild
@@ -94,6 +94,7 @@ src_prepare() {
        kernel_is ge 3 13 0 && epatch 
"${FILESDIR}/${PV_MAJOR}-3.13-00-vmnet.patch"
        kernel_is ge 3 15 0 && epatch 
"${FILESDIR}/${PV_MAJOR}-3.15-00-readlink.patch"
        kernel_is ge 3 15 0 && epatch 
"${FILESDIR}/${PV_MAJOR}-3.15-01-vsock.patch"
+       kernel_is ge 3 17 0 && epatch 
"${FILESDIR}/${PV_MAJOR}-3.17-00-netdev.patch"
 
        # Allow user patches so they can support RC kernels and whatever else
        epatch_user

Reply via email to