From 6251e7309cdd357cad660db16930988ab83cf4bd Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 26 Oct 2020 05:00:21 +0200 Subject: [PATCH] fix build on FreeBSD Signed-off-by: Ivailo Monev --- src/core/io/qfilesystemengine_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);