aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/wine-devel
diff options
context:
space:
mode:
authordbn <dbn@FreeBSD.org>2014-01-05 15:36:37 +0800
committerdbn <dbn@FreeBSD.org>2014-01-05 15:36:37 +0800
commit1e216b9214155ed1d6fea004f65d4794860dabd9 (patch)
tree386fdac37672916493e5518586e5d14ff7648515 /emulators/wine-devel
parent8786ac1e8a224cdb99e0742677f9afedc1c205aa (diff)
downloadfreebsd-ports-gnome-1e216b9214155ed1d6fea004f65d4794860dabd9.tar.gz
freebsd-ports-gnome-1e216b9214155ed1d6fea004f65d4794860dabd9.tar.zst
freebsd-ports-gnome-1e216b9214155ed1d6fea004f65d4794860dabd9.zip
Add missing patch for emulators/wine-devel.
Without this patch the port fails to build.
Diffstat (limited to 'emulators/wine-devel')
-rw-r--r--emulators/wine-devel/files/patch-dlls_ws2_32_socket.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/emulators/wine-devel/files/patch-dlls_ws2_32_socket.c b/emulators/wine-devel/files/patch-dlls_ws2_32_socket.c
new file mode 100644
index 000000000000..e31c4bb5649a
--- /dev/null
+++ b/emulators/wine-devel/files/patch-dlls_ws2_32_socket.c
@@ -0,0 +1,13 @@
+diff --git a/dlls/ws2_32/socket.c b/dlls/ws2_32/socket.c
+index 0391554..6374ba9 100644
+--- dlls/ws2_32/socket.c
++++ dlls/ws2_32/socket.c
+@@ -1473,7 +1473,7 @@ static BOOL is_sockaddr_bound(const struct sockaddr *uaddr, int uaddrlen)
+ {
+ static const struct sockaddr_ipx emptyAddr;
+ struct sockaddr_ipx *ipx = (struct sockaddr_ipx*) uaddr;
+- return ipx->sipx_port || ipx->sipx_network || memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));
++ return ipx->sipx_port || ((union ipx_net_u)ipx->sipx_network).long_e || memcmp(&ipx->sipx_node, &emptyAddr.sipx_node, sizeof(emptyAddr.sipx_node));
+ }
+ #endif
+ case AF_INET6: