From: havoc Date: Tue, 7 Sep 2004 17:13:58 +0000 (+0000) Subject: fixed STANDALONETEST so it works again X-Git-Tag: xonotic-v0.1.0preview~5638 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=e7234767eeaabdd4b19988841cda4797bcf7d3fe;p=xonotic%2Fdarkplaces.git fixed STANDALONETEST so it works again git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4443 d7cf8633-e32d-0410-b094-e92efae38249 --- 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);