fix for *nix

This commit is contained in:
Bill Currie 2001-01-08 17:52:20 +00:00
parent e32fb4d048
commit 81ac48eaf0

View file

@ -97,11 +97,12 @@ netadr_t net_from;
sizebuf_t net_message; sizebuf_t net_message;
int net_socket; int net_socket;
extern qboolean is_server;
#define MAX_UDP_PACKET (MAX_MSGLEN*2) #define MAX_UDP_PACKET (MAX_MSGLEN*2)
byte net_message_buffer[MAX_UDP_PACKET]; byte net_message_buffer[MAX_UDP_PACKET];
#ifdef _WIN32 #ifdef _WIN32
extern qboolean is_server;
WSADATA winsockdata; WSADATA winsockdata;
#endif #endif
@ -249,7 +250,6 @@ NET_GetPacket (void)
int ret; int ret;
struct sockaddr_in from; struct sockaddr_in from;
socklen_t fromlen; socklen_t fromlen;
int i;
fromlen = sizeof (from); fromlen = sizeof (from);
ret = ret =