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.144 by root, Wed May 9 11:46:49 2007 UTC

15package CFPlus; 15package CFPlus;
16 16
17use Carp (); 17use Carp ();
18 18
19BEGIN { 19BEGIN {
20 $VERSION = '0.97'; 20 $VERSION = '0.98';
21 21
22 use XSLoader; 22 use XSLoader;
23 XSLoader::load "CFPlus", $VERSION; 23 XSLoader::load "CFPlus", $VERSION;
24} 24}
25 25
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