From 8fd916d6ddc9c7fd0e3e8e668efbc2d782e8e742 Mon Sep 17 00:00:00 2001 From: Henry Rawas Date: Wed, 29 Jun 2011 10:22:48 -0700 Subject: [PATCH] fix mingw build --- uv-win.c | 13 +++++++++++++ uv-win.h | 13 ------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/uv-win.c b/uv-win.c index 4039c344..617fe012 100644 --- a/uv-win.c +++ b/uv-win.c @@ -214,6 +214,19 @@ static struct sockaddr_in uv_addr_ip4_any_; static char uv_zero_[] = ""; +/* + * Subclass of uv_handle_t. Used for integration of c-ares. + */ +typedef struct uv_ares_action_s uv_ares_action_t; + +struct uv_ares_action_s { + UV_HANDLE_FIELDS + struct uv_req_s ares_req; + SOCKET sock; + int read; + int write; +}; + void uv_ares_process(uv_ares_action_t* handle, uv_req_t* req); void uv_ares_task_cleanup(uv_ares_task_t* handle, uv_req_t* req); diff --git a/uv-win.h b/uv-win.h index a4b9b42b..a6760fbc 100644 --- a/uv-win.h +++ b/uv-win.h @@ -125,18 +125,5 @@ typedef struct uv_buf_t { struct addrinfoW* res; \ int retcode; -/* - * Subclass of uv_handle_t. Used for integration of c-ares. - */ -typedef struct uv_ares_action_s uv_ares_action_t; - -struct uv_ares_action_s { - UV_HANDLE_FIELDS - struct uv_req_s ares_req; - SOCKET sock; - int read; - int write; -}; - int uv_utf16_to_utf8(wchar_t* utf16Buffer, size_t utf16Size, char* utf8Buffer, size_t utf8Size); int uv_utf8_to_utf16(const char* utf8Buffer, wchar_t* utf16Buffer, size_t utf16Size);