diff options
Diffstat (limited to 'zenstore/basicfile.cpp')
| -rw-r--r-- | zenstore/basicfile.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zenstore/basicfile.cpp b/zenstore/basicfile.cpp index 042f0aa43..93d4ded13 100644 --- a/zenstore/basicfile.cpp +++ b/zenstore/basicfile.cpp @@ -329,9 +329,11 @@ BasicFile::SetFileSize(uint64_t FileSize) #elif ZEN_PLATFORM_MAC int Fd = int(intptr_t(m_FileHandle)); ftruncate(Fd, (off_t)FileSize); + posix_fallocate(Fd, 0, (off_t)FileSize); #else - int Fd = int(intptr_t(m_FileHandle)); + posix_fallocate(Fd, 0, ) int Fd = int(intptr_t(m_FileHandle)); ftruncate64(Fd, (off64_t)FileSize); + posix_fallocate64(Fd, 0, (off64_t)FileSize); #endif } |