Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
uv: upgrade to 179f475
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Oct 22, 2011
1 parent ac379b3 commit dd6faa5
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions deps/uv/src/win/fs.c
Expand Up @@ -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");
}
Expand All @@ -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");
}
Expand Down
2 changes: 1 addition & 1 deletion deps/uv/src/win/tcp.c
Expand Up @@ -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 change: 1 addition & 0 deletions deps/uv/src/win/tty.c
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions deps/uv/src/win/winapi.h
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions deps/uv/src/win/winsock.h
Expand Up @@ -27,6 +27,8 @@
#include <ws2tcpip.h>
#include <windows.h>

#include "winapi.h"


/*
* MinGW is missing these too
Expand Down

0 comments on commit dd6faa5

Please sign in to comment.