summaryrefslogtreecommitdiff
path: root/games/doomlegacy/files/patch-src_i__tcp.c
blob: 4057de5862c78e23396b5b509937c9f09741c302 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- src/i_tcp.c.orig	2017-03-03 19:49:10 UTC
+++ src/i_tcp.c
@@ -411,8 +411,12 @@ byte  IPX_hashaddr(mysockaddr_t *a)
     // Not allowed to be 0.
     // Big endian, want final addr byte.
 #ifdef LINUX
+# ifdef FREEBSD
+    return ((byte)(a->ipx.sipx_addr.x_host.c_host[5])) | 0x80;
+# else
     // Linux: IPX address hash
     return ((byte)(a->ipx.sipx_node[5])) | 0x80;
+# endif
 #else
     // Windows, OS2, DJGPP: IPX address hash
     return ((byte)(a->ipx.sa_nodenum[5])) | 0x80;