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.142 by root, Fri Apr 6 23:25:07 2007 UTC vs.
Revision 1.143 by root, Mon Apr 16 20:35:28 2007 UTC

232sub fh_nonblocking($$) { 232sub fh_nonblocking($$) {
233 my ($fh, $nb) = @_; 233 my ($fh, $nb) = @_;
234 234
235 if ($^O eq "MSWin32") { 235 if ($^O eq "MSWin32") {
236 $nb = (! ! $nb) + 0; 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
242} 242}

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines