From 4e1e60fbf07479eca1cf71e36bd05315b363ae0c Mon Sep 17 00:00:00 2001 From: Henry Rawas Date: Tue, 28 Jun 2011 13:32:35 -0700 Subject: [PATCH] Fix the MinGW build --- src/node_child_process.h | 2 +- src/node_child_process_win32.cc | 2 +- src/node_stdio_win32.cc | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/node_child_process.h b/src/node_child_process.h index 1e156b3..9c82a4b 100644 --- a/src/node_child_process.h +++ b/src/node_child_process.h @@ -124,7 +124,7 @@ class ChildProcess : ObjectWrap { static void watch(ChildProcess *child); static void CALLBACK watch_wait_callback(void *data, BOOLEAN didTimeout); static void notify_spawn_failure(ChildProcess *child); - static void notify_exit(uv_handle_t* watcher, int status); + static void notify_exit(uv_async_t* watcher, int status); static int do_kill(ChildProcess *child, int sig);static void close_stdio_handles(ChildProcess *child); int pid_; diff --git a/src/node_child_process_win32.cc b/src/node_child_process_win32.cc index e105d9a..33eeba4 100644 --- a/src/node_child_process_win32.cc +++ b/src/node_child_process_win32.cc @@ -351,7 +351,7 @@ void ChildProcess::close_stdio_handles(ChildProcess *child) { // Called from the main thread -void ChildProcess::notify_exit(uv_handle_t* watcher, int status) { +void ChildProcess::notify_exit(uv_async_t* watcher, int status) { // Get the child process, then release the lock ChildProcess *child = watcher_status.child; diff --git a/src/node_stdio_win32.cc b/src/node_stdio_win32.cc index 7b2561b..575f4ad 100644 --- a/src/node_stdio_win32.cc +++ b/src/node_stdio_win32.cc @@ -493,8 +493,8 @@ static inline void tty_emit_error(Handle err) { } -static void tty_poll(uv_handle_t* handle, int status) { - assert((uv_async_t*) handle == &tty_avail_notifier); +static void tty_poll(uv_async_t* handle, int status) { + assert(handle == &tty_avail_notifier); assert(status == 0); HandleScope scope; -- 2.7.4