fix mingw build

This commit is contained in:
Henry Rawas 2011-06-29 10:22:48 -07:00 committed by Ryan Dahl
parent 5b7cfe4bd4
commit 8fd916d6dd
2 changed files with 13 additions and 13 deletions

View File

@ -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);

View File

@ -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);