mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
uv: upgrade to 179f475
This commit is contained in:
4
deps/uv/src/win/fs.c
vendored
4
deps/uv/src/win/fs.c
vendored
@@ -424,7 +424,7 @@ void fs__readdir(uv_fs_t* req, const wchar_t* path, int flags) {
|
||||
len = wcslen(name);
|
||||
|
||||
if (!buf) {
|
||||
buf = (wchar_t*)malloc(buf_size);
|
||||
buf = (wchar_t*)malloc(buf_size * sizeof(wchar_t));
|
||||
if (!buf) {
|
||||
uv_fatal_error(ERROR_OUTOFMEMORY, "malloc");
|
||||
}
|
||||
@@ -435,7 +435,7 @@ void fs__readdir(uv_fs_t* req, const wchar_t* path, int flags) {
|
||||
while ((ptr - buf) + len + 1 > buf_size) {
|
||||
buf_size *= 2;
|
||||
path2 = buf;
|
||||
buf = (wchar_t*)realloc(buf, buf_size);
|
||||
buf = (wchar_t*)realloc(buf, buf_size * sizeof(wchar_t));
|
||||
if (!buf) {
|
||||
uv_fatal_error(ERROR_OUTOFMEMORY, "realloc");
|
||||
}
|
||||
|
||||
2
deps/uv/src/win/tcp.c
vendored
2
deps/uv/src/win/tcp.c
vendored
@@ -964,7 +964,7 @@ int uv_tcp_nodelay(uv_tcp_t* handle, int enable) {
|
||||
}
|
||||
|
||||
|
||||
int uv_tcp_keepalive(uv_tcp_t* handle, int enable, int delay) {
|
||||
int uv_tcp_keepalive(uv_tcp_t* handle, int enable, unsigned int delay) {
|
||||
uv__set_artificial_error(handle->loop, UV_ENOSYS);
|
||||
return -1;
|
||||
}
|
||||
|
||||
1
deps/uv/src/win/tty.c
vendored
1
deps/uv/src/win/tty.c
vendored
@@ -1334,6 +1334,7 @@ static int uv_tty_write_bufs(uv_tty_t* handle, uv_buf_t bufs[], int bufcnt,
|
||||
|
||||
case 'c':
|
||||
/* Full console reset. */
|
||||
FLUSH_TEXT();
|
||||
uv_tty_reset(handle, error);
|
||||
ansi_parser_state = ANSI_NORMAL;
|
||||
continue;
|
||||
|
||||
4
deps/uv/src/win/winapi.h
vendored
4
deps/uv/src/win/winapi.h
vendored
@@ -4211,6 +4211,10 @@ typedef enum _FILE_INFORMATION_CLASS {
|
||||
# define FILE_DEVICE_FILE_SYSTEM 0x00000009
|
||||
#endif
|
||||
|
||||
#ifndef FILE_DEVICE_NETWORK
|
||||
# define FILE_DEVICE_NETWORK 0x00000012
|
||||
#endif
|
||||
|
||||
#ifndef METHOD_BUFFERED
|
||||
# define METHOD_BUFFERED 0
|
||||
#endif
|
||||
|
||||
2
deps/uv/src/win/winsock.h
vendored
2
deps/uv/src/win/winsock.h
vendored
@@ -27,6 +27,8 @@
|
||||
#include <ws2tcpip.h>
|
||||
#include <windows.h>
|
||||
|
||||
#include "winapi.h"
|
||||
|
||||
|
||||
/*
|
||||
* MinGW is missing these too
|
||||
|
||||
Reference in New Issue
Block a user