ports/sysutils/freefilesync/files/patch-zen_file__io.cpp
Yuri Victorovich 19f1bc0500 sysutils/freefilesync: Update to 9.8
Port changes:
* Updated LICENSE_FILE
* Added IGNORE_FreeBSD_10 because of missing _cxa_thread_atexit()
* Added to LIB_DEPENDS
* Added USE_GNOME
* Removed USE_LDCONFIG
* Updated post-patch

PR:		226276
Submitted by:	Olexandr Davydenko <odavydenko@gmail.com>
Approved by:	tcberner (mentor, implicit)
2018-03-02 08:51:18 +00:00

12 lines
570 B
C++

--- ../../zen/file_io.cpp.orig 2018-03-01 11:10:56.764684000 +0200
+++ ../../zen/file_io.cpp 2018-03-01 11:12:35.599889000 +0200
@@ -305,8 +305,7 @@
{
const FileHandle fh = getHandle();
//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
expectedSize); //off_t len
if (rv != 0)