diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2011-10-11 14:25:50 -0700 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2011-10-11 14:25:50 -0700 |
commit | 4f59041990b1e47597eae396ab46879deb5bbea6 (patch) | |
tree | cf2b3ae7667ed18c5837cc665d4d01499e021eee | |
parent | cdf5d91fe56c82f61010ddd9035f3708b51e8b74 (diff) | |
download | node-new-4f59041990b1e47597eae396ab46879deb5bbea6.tar.gz |
Fix windows build
-rw-r--r-- | node.gyp | 1 | ||||
-rw-r--r-- | src/node.cc | 4 |
2 files changed, 4 insertions, 1 deletions
@@ -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', diff --git a/src/node.cc b/src/node.cc index 9552905d80..d55e0cbffb 100644 --- a/src/node.cc +++ b/src/node.cc @@ -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")); |