mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kioslave: avoid sendfile64()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
bd690412e0
commit
22adbbe45b
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ void FileProtocol::copy( const KUrl &srcUrl, const KUrl &destUrl,
|
|||
#ifdef USE_SENDFILE
|
||||
if (use_sendfile) {
|
||||
off_t sf = processed_size;
|
||||
n = KDE_sendfile( dest_fd, src_fd, &sf, MAX_IPC_SIZE );
|
||||
n = ::sendfile( dest_fd, src_fd, &sf, MAX_IPC_SIZE );
|
||||
processed_size = sf;
|
||||
if ( n == -1 && ( errno == EINVAL || errno == ENOSYS ) ) { //not all filesystems support sendfile()
|
||||
kDebug(7101) << "sendfile() not supported, falling back ";
|
||||
|
|
Loading…
Add table
Reference in a new issue