diff options
Diffstat (limited to 'src/tty_wrap.cc')
-rw-r--r-- | src/tty_wrap.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tty_wrap.cc b/src/tty_wrap.cc index 31949011f3..486c2a70b4 100644 --- a/src/tty_wrap.cc +++ b/src/tty_wrap.cc @@ -21,7 +21,6 @@ #include <node.h> #include <node_buffer.h> -#include <node_vars.h> #include <req_wrap.h> #include <handle_wrap.h> #include <stream_wrap.h> @@ -125,7 +124,7 @@ class TTYWrap : StreamWrap { int r = uv_tty_get_winsize(&wrap->handle_, &width, &height); if (r) { - SetErrno(uv_last_error(Loop())); + SetErrno(uv_last_error(uv_default_loop())); return v8::Undefined(); } @@ -144,7 +143,7 @@ class TTYWrap : StreamWrap { int r = uv_tty_set_mode(&wrap->handle_, args[0]->IsTrue()); if (r) { - SetErrno(uv_last_error(Loop())); + SetErrno(uv_last_error(uv_default_loop())); } return scope.Close(Integer::New(r)); @@ -170,7 +169,7 @@ class TTYWrap : StreamWrap { TTYWrap(Handle<Object> object, int fd, bool readable) : StreamWrap(object, (uv_stream_t*)&handle_) { - uv_tty_init(Loop(), &handle_, fd, readable); + uv_tty_init(uv_default_loop(), &handle_, fd, readable); } uv_tty_t handle_; |