Index: dnsserver.cc =================================================================== RCS file: /cvsroot/squid/squid3/src/dnsserver.cc,v retrieving revision 1.3 diff -u -p -r1.3 dnsserver.cc --- dnsserver.cc 18 Nov 2002 03:12:57 -0000 1.3 +++ dnsserver.cc 4 Feb 2003 10:05:52 -0000 @@ -142,7 +142,7 @@ #include "util.h" #include "snprintf.h" -#if !defined(_SQUID_AIX_) +#if !defined(_SQUID_AIX_) && !defined(_SQUID_MSWIN_) extern int h_errno; #endif @@ -340,6 +340,14 @@ main(int argc, char *argv[]) } } +#ifdef _SQUID_MSWIN_ + { + WSADATA wsaData; + + WSAStartup(2, &wsaData); + } + fflush(stderr); +#endif for (;;) { memset(request, '\0', REQ_SZ); if (fgets(request, REQ_SZ, stdin) == NULL)