compile fixes for win32

This commit is contained in:
Bill Currie 2002-02-12 04:17:31 +00:00
parent 6f7b3fa0ef
commit a9547414f3

View file

@ -234,6 +234,7 @@ QW_Master (struct sockaddr_in *addr)
{
int sock;
#ifdef _WIN32
int i;
WSADATA winsockdata;
#endif
@ -336,7 +337,7 @@ make_host_addr (const char *host, int port, struct sockaddr_in *host_addr)
return 0;
}
#ifndef WIN32
static void
read_hosts (const char *fname)
{
@ -371,6 +372,7 @@ read_hosts (const char *fname)
}
fclose (host_file);
}
#endif
int
main (int argc, char **argv)