From 4f59041990b1e47597eae396ab46879deb5bbea6 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Tue, 11 Oct 2011 14:25:50 -0700 Subject: [PATCH] Fix windows build --- node.gyp | 1 - src/node.cc | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/node.gyp b/node.gyp index 8068ea1..2039866 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 9552905..d55e0cb 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1355,7 +1355,11 @@ static Handle 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")); -- 2.7.4