diff --git a/src/utils/native_file.cpp b/src/utils/native_file.cpp index 0ccbd793..2b830db5 100644 --- a/src/utils/native_file.cpp +++ b/src/utils/native_file.cpp @@ -200,8 +200,8 @@ auto native_file::get_file_size(std::uint64_t &file_size) -> bool { } #else #if __APPLE__ - struct stat st {}; - if (fstat(handle_, &st) >= 0) { + struct stat unix_st {}; + if (fstat(handle_, &unix_st) >= 0) { #else struct stat64 unix_st {}; if (fstat64(handle_, &unix_st) >= 0) {