diff --git a/lib/Alembic/Ogawa/IStreams.cpp b/lib/Alembic/Ogawa/IStreams.cpp index 3cb2d9a4..e64e12a2 100644 --- a/lib/Alembic/Ogawa/IStreams.cpp +++ b/lib/Alembic/Ogawa/IStreams.cpp @@ -182,7 +182,7 @@ class FileIStreamReader : public IStreamReader { struct __stat64 buf; - int err = _stat64(iFile, &buf); + int err = _fstat64(iFile, &buf); if (err < 0) return -1; if (buf.st_size < 0) return -1;