Fix windows build

This commit is contained in:
Ryan Dahl
2011-10-11 14:25:50 -07:00
parent cdf5d91fe5
commit 4f59041990
2 changed files with 4 additions and 1 deletions

View File

@@ -95,7 +95,6 @@
'src/handle_wrap.h',
'src/node.h',
'src/node_buffer.h',
'src/node_cares.h',
'src/node_constants.h',
'src/node_crypto.h',
'src/node_dtrace.h',

View File

@@ -1355,7 +1355,11 @@ static Handle<Value> WriteError (const Arguments& args) {
r = write(STDERR_FILENO, (*msg) + written, msg.length() - written);
if (r < 0) {
if (errno == EAGAIN || errno == EIO) {
#ifdef __POSIX__
usleep(100);
#else
Sleep(100);
#endif
continue;
}
return ThrowException(ErrnoException(errno, "write"));