(if any) (avoids trying to call external 'domainname',
which doesn't at the moment exist in Cygwin)
p4raw-id: //depot/perl@10858
return $host
if(defined $host);
- if ($^O eq 'MSWin32') {
+ if ($^O eq 'MSWin32' || $^O eq 'cygwin') {
require Socket;
my ($name,$alias,$type,$len,@addr) = gethostbyname($ENV{'COMPUTERNAME'}||'localhost');
while (@addr)