diff options
Diffstat (limited to 'zenstore/basicfile.cpp')
| -rw-r--r-- | zenstore/basicfile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zenstore/basicfile.cpp b/zenstore/basicfile.cpp index e795b67eb..a3e1c4f20 100644 --- a/zenstore/basicfile.cpp +++ b/zenstore/basicfile.cpp @@ -354,7 +354,7 @@ BasicFile::SetFileSize(uint64_t FileSize) } if (FileSize > 0) { - int Error = posix_fallocate(Fd, 0, (off_t)FileSize); + int Error = fallocate(Fd, 0, (off_t)FileSize); if (Error) { ThrowSystemError(Error, fmt::format("Failed to allocate space of {} for file {}", FileSize, PathFromHandle(m_FileHandle))); |