diff --git a/source/net_udp.c b/source/net_udp.c index e565ce4..9dd5329 100644 --- a/source/net_udp.c +++ b/source/net_udp.c @@ -259,7 +259,7 @@ int UDP_CheckNewConnections (void) Sys_Error ("UDP: ioctlsocket (FIONREAD) failed\n"); if (available) return net_acceptsocket; - recvfrom (net_acceptsocket, buff, 0, 0, &from, &fromlen); + recvfrom (net_acceptsocket, buff, 0, 0, (struct sockaddr *) &from, &fromlen); return -1; } diff --git a/source/sys_unix.c b/source/sys_unix.c index f9c5bb6..a826240 100644 --- a/source/sys_unix.c +++ b/source/sys_unix.c @@ -41,6 +41,7 @@ #include #include #include +#include #include "sys.h" #include "qargs.h"