From: Ivailo Monev Date: Mon, 26 Oct 2020 03:00:21 +0000 (+0200) Subject: fix build on FreeBSD X-Git-Tag: 4.12.0~3426 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=6251e7309cdd357cad660db16930988ab83cf4bd;p=kde%2FKatie.git fix build on FreeBSD Signed-off-by: Ivailo Monev --- diff --git a/src/core/io/qfilesystemengine_unix.cpp b/src/core/io/qfilesystemengine_unix.cpp index 017a61437..75985b336 100644 --- a/src/core/io/qfilesystemengine_unix.cpp +++ b/src/core/io/qfilesystemengine_unix.cpp @@ -374,7 +374,7 @@ bool QFileSystemEngine::copyFile(const QFileSystemEntry &source, const QFileSyst #undef QT_SENDFILE #elif defined(Q_OS_FREEBSD) QT_OFF_T totalwrite = 0; - int sendresult = ::sendfile(sourcefd, targetfd, QT_OFF_T(0), size_t(0), Q_NULLPTR, totalwrite, SF_SYNC); + int sendresult = ::sendfile(sourcefd, targetfd, QT_OFF_T(0), size_t(0), Q_NULLPTR, &totalwrite, SF_SYNC); if (QT_OFF_T(sendresult) != totalwrite) { *error = errno; ::close(sourcefd);