diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch')
-rw-r--r-- | app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch b/app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch new file mode 100644 index 000000000000..6155df425972 --- /dev/null +++ b/app-emulation/vmware-modules/files/304-4.2-03-af_vsock.patch @@ -0,0 +1,13 @@ +--- vsock-only/linux/af_vsock.c.orig 2015-09-28 01:26:51.354061029 +0300 ++++ vsock-only/linux/af_vsock.c 2015-09-28 01:25:11.196058649 +0300 +@@ -2826,7 +2826,9 @@ + * network namespace, and the option to zero the sock was dropped. + * + */ +-#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 2, 0) ++ sk = sk_alloc(net, vsockVmciFamilyOps.family, priority, &vsockVmciProto, 1); ++#elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 12) + sk = sk_alloc(vsockVmciFamilyOps.family, priority, + vsockVmciProto.slab_obj_size, vsockVmciProto.slab); + #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) |