Move Object::Accessor from lib/ to ext/
[p5sagit/p5-mst-13.2.git] / ext / IO / IO.xs
index eac8a64..d3dff55 100644 (file)
@@ -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
 }
 
@@ -205,7 +210,7 @@ MODULE = IO PACKAGE = IO::File      PREFIX = f
 
 void
 new_tmpfile(packname = "IO::File")
-    char *     packname
+    const char * packname
     PREINIT:
        OutputStream fp;
        GV *gv;