# # patch "cvs_client.cc" # from [30857975cafb93e361ed1dc9c38ef53da4967cc9] # to [ac18768a428a1e5d9b2bc83a89970e87cdbbd3b7] # ======================================================================== --- cvs_client.cc 30857975cafb93e361ed1dc9c38ef53da4967cc9 +++ cvs_client.cc ac18768a428a1e5d9b2bc83a89970e87cdbbd3b7 @@ -299,9 +299,13 @@ { // get localhost's name char domainname[1024]; *domainname=0; +#ifdef WIN32 + strcpy(domainname,"localhost"); // gethostname does not work here ... +#else if (gethostname(domainname,sizeof domainname)) throw oops("gethostname "+std::string(strerror(errno))); domainname[sizeof(domainname)-1]=0; +#endif #if !defined(__sun) && !defined(WIN32) unsigned len=strlen(domainname); if (len && len