Subject: | Your vendor has not defined Fcntl macro F_SETFL |
This is due to use of fcntl in Net::SSH::Perl
The fix is to replace
fcntl($sock, F_SETFL, O_NONBLOCK)
or die "Can't set socket non-blocking: $!";
with
defined( $sock->blocking(0) )
or die "Can't set socket non-blocking: ${\int$!} : $!";
This is the most crossplatform solution.
That ${\int$!} is there because on some platforms
$! will stringify to "Unknown error" for high numbers like 1122