projects
/
p5sagit/p5-mst-13.2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Move Object::Accessor from lib/ to ext/
[p5sagit/p5-mst-13.2.git]
/
ext
/
IO
/
IO.xs
diff --git
a/ext/IO/IO.xs
b/ext/IO/IO.xs
index
c81cb93
..
d3dff55
100644
(file)
--- a/
ext/IO/IO.xs
+++ b/
ext/IO/IO.xs
@@
-121,7
+121,12
@@
io_blocking(pTHX_ InputStream f, int block)
}
return RETVAL;
#else
+# ifdef WIN32
+ char flags = (char)block;
+ return ioctl(PerlIO_fileno(f), FIONBIO, &flags);
+# else
return -1;
+# endif
#endif
}