X-Git-Url: http://dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FMsg.pm;h=ec2f3b4ca0214836327bb99c8a84aaa60a609b6a;hb=21eccb8b2261a8f75ab4a4ac1426b77664733069;hp=a30b1f5d064c827fcef6cefa37515927bd0f1ac2;hpb=81bd571ef4d8b2b9762738cf70cd5b644c368dc5;p=spider.git diff --git a/perl/Msg.pm b/perl/Msg.pm index a30b1f5d..ec2f3b4c 100644 --- a/perl/Msg.pm +++ b/perl/Msg.pm @@ -37,6 +37,7 @@ $now = time; BEGIN { # Checks if blocking is supported eval { + local $^W; require POSIX; POSIX->import(qw(O_NONBLOCK F_SETFL F_GETFL)) }; if ($@ || $main::is_win) { @@ -50,12 +51,14 @@ BEGIN { # import as many of these errno values as are available eval { + local $^W; require Errno; Errno->import(qw(EAGAIN EINPROGRESS EWOULDBLOCK)); }; unless ($^O eq 'MSWin32') { if ($] >= 5.6) { eval { + local $^W; require Socket; Socket->import(qw(IPPROTO_TCP TCP_NODELAY)); }; } else {