fix for bsd

This commit is contained in:
Bill Currie 2001-01-27 04:37:37 +00:00
parent 4717448bd6
commit e73ff67bf3

View file

@ -366,6 +366,8 @@ UDP_OpenSocket (int port)
#endif
int i;
memset (&address, 0, sizeof(address));
if ((newsocket = socket (PF_INET, SOCK_DGRAM, IPPROTO_UDP)) == -1)
Sys_Error ("UDP_OpenSocket: socket:%s", strerror (errno));
if (ioctl (newsocket, FIONBIO, &_true) == -1)