fix: miss out _fstat64

This commit is contained in:
Alex Duan 2023-04-25 17:10:12 +08:00
parent ee93500619
commit 97a5ebac1c
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ int32_t taosFStatFile(TdFilePtr pFile, int64_t *size, int32_t *mtime) {
#ifdef WINDOWS #ifdef WINDOWS
struct __stat64 fileStat; struct __stat64 fileStat;
int32_t code = _fstat(pFile->fd, &fileStat); int32_t code = _fstat64(pFile->fd, &fileStat);
#else #else
struct stat fileStat; struct stat fileStat;
int32_t code = fstat(pFile->fd, &fileStat); int32_t code = fstat(pFile->fd, &fileStat);