From e7234767eeaabdd4b19988841cda4797bcf7d3fe Mon Sep 17 00:00:00 2001 From: havoc Date: Tue, 7 Sep 2004 17:13:58 +0000 Subject: [PATCH] fixed STANDALONETEST so it works again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4443 d7cf8633-e32d-0410-b094-e92efae38249 --- lhnet.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lhnet.c b/lhnet.c index 48a2c2c3..bc7f4017 100644 --- a/lhnet.c +++ b/lhnet.c @@ -24,6 +24,8 @@ #include "sys.h" #include "netconn.h" #else +#define Con_Print printf +#define Con_Printf printf #define Z_Malloc malloc #define Z_Free free #endif @@ -457,7 +459,7 @@ lhnetsocket_t *LHNET_OpenSocket_Connectionless(lhnetaddress_t *address) if (ioctl(lhnetsocket->inetsocket, FIONBIO, &_true) != -1) #endif { - size_t namelen = address->addresstype == LHNETADDRESSTYPE_INET6 ? sizeof(lhnetsocket->address.addressdata.inet6) : sizeof(lhnetsocket->address.addressdata.inet4); + socklen_t namelen = address->addresstype == LHNETADDRESSTYPE_INET6 ? sizeof(lhnetsocket->address.addressdata.inet6) : sizeof(lhnetsocket->address.addressdata.inet4); if (bind(lhnetsocket->inetsocket, (void *)&lhnetsocket->address.addressdata, namelen) != -1) { getsockname(lhnetsocket->inetsocket, (void *)&lhnetsocket->address.addressdata, &namelen); -- 2.39.2