From b90459fc8183b94b93e285068762f1497f4d7577 Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Sun, 4 Sep 2011 23:31:25 -0700 Subject: [PATCH] windows: use _stati64 --- include/uv-private/uv-win.h | 2 +- src/win/fs.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 {