OSDN Git Service
(root)
/
kde
/
Katie.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7f762a
)
fix build on FreeBSD
author
Ivailo Monev
<xakepa10@gmail.com>
Mon, 26 Oct 2020 03:00:21 +0000
(
05:00
+0200)
committer
Ivailo Monev
<xakepa10@gmail.com>
Mon, 26 Oct 2020 03:00:21 +0000
(
05:00
+0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/io/qfilesystemengine_unix.cpp
patch
|
blob
|
history
diff --git
a/src/core/io/qfilesystemengine_unix.cpp
b/src/core/io/qfilesystemengine_unix.cpp
index
017a614
..
75985b3
100644
(file)
--- 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);