freebsd-ports/sysutils/freefilesync/files/patch-fs_native.cpp
Kevin Lo be19a7dce2 Import freefilesync 7.9.
Freefilesync is a free open source software that helps you synchronize
files and synchronize folders for Windows, Linux, FreeBSD and Mac OS X.
2016-03-09 02:21:21 +00:00

12 lines
519 B
C++

--- fs/native.cpp.orig 2016-03-09 02:07:44 UTC
+++ fs/native.cpp
@@ -84,8 +84,7 @@ void preAllocateSpaceBestEffort(FileHand
#elif defined ZEN_LINUX
//don't use potentially inefficient ::posix_fallocate!
- const int rv = ::fallocate(fh, //int fd,
- 0, //int mode,
+ const int rv = ::posix_fallocate(fh, //int fd,
0, //off_t offset
streamSize); //off_t len
if (rv != 0)