Fwd: Fix build of IPX on FreeBSD

David Naylor dbn at freebsd.org
Fri Jan 3 14:48:17 CST 2014


Hi,

FreeBSD defines the following in netipx/ipx.h:

union ipx_net {
        u_char  c_net[4];
        u_short s_net[2];
};

union ipx_net_u {
        union   ipx_net net_e;
        u_long          long_e;
};

struct ipx_addr {
        union ipx_net   x_net;
        union ipx_host  x_host;
        u_short         x_port;
};

struct sockaddr_ipx {
        u_char          sipx_len;
        u_char          sipx_family;
        struct ipx_addr sipx_addr;
        char            sipx_zero[2];
};

Since sockaddr_ipx.sipx_addr.x_net is a union it cannot be used in boolean 
logic, thus breaking the compilation of the latest version of wine on FreeBSD.  
The attached patch fixed this errorin dlls/ws2_32/socket.c on FreeBSD.  

Regards,

David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-dlls_ws2_32_socket.c
Type: text/x-csrc
Size: 714 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140103/23d225ee/attachment.c>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 326 bytes
Desc: This is a digitally signed message part.
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20140103/23d225ee/attachment.pgp>


More information about the wine-patches mailing list