From 3a3025861673472b877ae0e60f8ae4e441c38266 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Thu, 29 Nov 2012 15:22:39 +0100 Subject: [PATCH] windows: fix uv_backend_fd() return value uv__new_artificial_error() returns a uv_err_t, not an int, and we can't use uv__set_artificial_error() because the uv_loop_t argument is const. --- src/win/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/win/core.c b/src/win/core.c index 56b15d45..3df3399b 100644 --- a/src/win/core.c +++ b/src/win/core.c @@ -172,7 +172,7 @@ void uv_loop_delete(uv_loop_t* loop) { int uv_backend_fd(const uv_loop_t* loop) { - return uv__new_artificial_error(UV_ENOSYS); + return -1; }