mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
Fix windows build
This commit is contained in:
1
node.gyp
1
node.gyp
@@ -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',
|
||||
|
||||
@@ -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"));
|
||||
|
||||
Reference in New Issue
Block a user