diff --git a/include/uv-private/uv-win.h b/include/uv-private/uv-win.h index 35c9c194..01acc01f 100644 --- a/include/uv-private/uv-win.h +++ b/include/uv-private/uv-win.h @@ -248,7 +248,7 @@ RB_HEAD(uv_timer_tree_s, uv_timer_s); #define UV_FS_PRIVATE_FIELDS \ int flags; \ int last_error; \ - struct _stat stat; \ + struct _stati64 stat; \ void* arg0; \ union { \ struct { \ diff --git a/src/win/fs.c b/src/win/fs.c index 4cc597c3..bc8e021b 100644 --- a/src/win/fs.c +++ b/src/win/fs.c @@ -356,7 +356,7 @@ done: void fs__stat(uv_fs_t* req, const char* path) { int result; - result = _stat(path, &req->stat); + result = _stati64(path, &req->stat); if (result == -1) { req->ptr = NULL; } else { @@ -370,7 +370,7 @@ void fs__stat(uv_fs_t* req, const char* path) { void fs__fstat(uv_fs_t* req, uv_file file) { int result; - result = _fstat(file, &req->stat); + result = _fstati64(file, &req->stat); if (result == -1) { req->ptr = NULL; } else {