fix mingw build
This commit is contained in:
parent
5b7cfe4bd4
commit
8fd916d6dd
13
uv-win.c
13
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);
|
||||
|
||||
|
||||
13
uv-win.h
13
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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user