summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2011-10-11 14:25:50 -0700
committerRyan Dahl <ry@tinyclouds.org>2011-10-11 14:25:50 -0700
commit4f59041990b1e47597eae396ab46879deb5bbea6 (patch)
treecf2b3ae7667ed18c5837cc665d4d01499e021eee
parentcdf5d91fe56c82f61010ddd9035f3708b51e8b74 (diff)
downloadnode-new-4f59041990b1e47597eae396ab46879deb5bbea6.tar.gz
Fix windows build
-rw-r--r--node.gyp1
-rw-r--r--src/node.cc4
2 files changed, 4 insertions, 1 deletions
diff --git a/node.gyp b/node.gyp
index 8068ea17e3..2039866075 100644
--- a/node.gyp
+++ b/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',
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"));