windows: use _stati64
This commit is contained in:
parent
991f6ee044
commit
b90459fc81
@ -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 { \
|
||||
|
||||
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user