windows: use _stati64

This commit is contained in:
Igor Zinkovsky 2011-09-04 23:31:25 -07:00
parent 991f6ee044
commit b90459fc81
2 changed files with 3 additions and 3 deletions

View File

@ -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 { \

View File

@ -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 {