diff options
author | Jean-Marc Lenoir | 2017-05-10 07:15:00 +0200 |
---|---|---|
committer | Jean-Marc Lenoir | 2017-05-10 07:15:00 +0200 |
commit | 95c14af7ef4827ff1355ebf77f5ed87c022fdca8 (patch) | |
tree | da006b75480f507f2b25d7d5e4549b6f108dda83 /vsock.patch | |
parent | 6e43524fc94471a97e2aa9846c45b3c4d15427ba (diff) | |
download | aur-95c14af7ef4827ff1355ebf77f5ed87c022fdca8.tar.gz |
Update to 12.5.5
Add an option to enable macOS guests
Add VMware Player
Compatibility with Linux 4.10 and 4.11
Add a workaround for incompatible libraries
Add recognition of installed guest tools
Add missing ISO images
Fix a bug with DKMS when using several kernels
Fix search for updates
Add binary vmware-mount
Add missing icons
Add MIME types
Modify the dependencies
Add a configuration file in the backup list
Diffstat (limited to 'vsock.patch')
-rw-r--r-- | vsock.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/vsock.patch b/vsock.patch index 9617ff200bdd..e6e341c58a34 100644 --- a/vsock.patch +++ b/vsock.patch @@ -32,6 +32,28 @@ diff --git a/vsock/linux/af_vsock.c b/vsock/linux/af_vsock.c index bde1497..9f8f843 100644 --- a/vsock/linux/af_vsock.c +++ b/vsock/linux/af_vsock.c +@@ -113,6 +113,9 @@ + asmlinkage __attribute__((weak)) long + sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg); + #endif ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 10, 99) ++#include <linux/sched/signal.h> ++#endif + + #include "compat_cred.h" + #include "compat_module.h" +@@ -212,7 +215,11 @@ + struct sockaddr *addr, int addrLen, int flags); + static int VSockVmciStreamConnect(struct socket *sock, + struct sockaddr *addr, int addrLen, int flags); ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) + static int VSockVmciAccept(struct socket *sock, struct socket *newsock, int flags); ++#else ++static int VSockVmciAccept(struct socket *sock, struct socket *newsock, int flags, bool kern); ++#endif + static int VSockVmciGetname(struct socket *sock, + struct sockaddr *addr, int *addrLen, int peer); + static unsigned int VSockVmciPoll(struct file *file, @@ -232,13 +232,29 @@ static int VSockVmciStreamSetsockopt(struct socket *sock, int level, int optname static int VSockVmciStreamGetsockopt(struct socket *sock, int level, int optname, char __user *optval, int __user * optlen); @@ -83,6 +105,19 @@ index bde1497..9f8f843 100644 sk = sk_alloc(vsockVmciFamilyOps.family, priority, vsockVmciProto.slab_obj_size, vsockVmciProto.slab); #elif LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) +@@ -3775,7 +3805,12 @@ + static int + VSockVmciAccept(struct socket *sock, // IN + struct socket *newsock, // IN/OUT ++#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) + int flags) // IN ++#else ++ int flags, // IN ++ bool kern) ++#endif + { + struct sock *listener; + int err; @@ -4210,7 +4233,11 @@ VSockVmciShutdown(struct socket *sock, // IN */ |