Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
windows: use _stati64
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky committed Sep 5, 2011
1 parent 991f6ee commit b90459f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/uv-private/uv-win.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 { \
Expand Down
4 changes: 2 additions & 2 deletions src/win/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ void fs__readdir(uv_fs_t* req, const char* path, int flags) {
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 {
Expand All @@ -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 {
Expand Down

0 comments on commit b90459f

Please sign in to comment.