From f74f34afdc786ae214ec5af729651d54dd122128 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Tue, 12 Apr 2022 14:00:46 +0200 Subject: switch posix_fallocate to fallocate on MacOS --- zenstore/basicfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'zenstore/basicfile.cpp') 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))); -- cgit v1.2.3