From 22adbbe45b7d08f0de4d94156fc8a8bef41a21dd Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Thu, 10 Jun 2021 06:26:34 +0300 Subject: [PATCH] kioslave: avoid sendfile64() Signed-off-by: Ivailo Monev --- kioslave/file/file_unix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kioslave/file/file_unix.cpp b/kioslave/file/file_unix.cpp index 8728eab1..bd7db7f2 100644 --- a/kioslave/file/file_unix.cpp +++ b/kioslave/file/file_unix.cpp @@ -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 ";