ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/DC.pm
(Generate patch)

Comparing deliantra/Deliantra-Client/DC.pm (file contents):
Revision 1.141 by root, Fri Apr 6 21:53:56 2007 UTC vs.
Revision 1.142 by root, Fri Apr 6 23:25:07 2007 UTC

230} 230}
231 231
232sub fh_nonblocking($$) { 232sub fh_nonblocking($$) {
233 my ($fh, $nb) = @_; 233 my ($fh, $nb) = @_;
234 234
235 if ($^O =~ /Win32/) { 235 if ($^O eq "MSWin32") {
236 $nb = ! ! $nb; 236 $nb = (! ! $nb) + 0;
237 ioctl $fh, 0x8004667e, $nb; # FIONBIO 237 ioctl $fh, 0x8004667e, $nb; # FIONBIO
238 } else { 238 } else {
239 fcntl $fh, &Fcntl::F_SETFL, $nb ? &Fcntl::O_NONBLOCK : 0; 239 fcntl $fh, &Fcntl::F_SETFL, $nb ? &Fcntl::O_NONBLOCK : 0;
240 } 240 }
241 241

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines