1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
diff --git a/src/VBox/Runtime/r3/linux/RTFileCopyPartEx-linux.cpp b/src/VBox/Runtime/r3/linux/RTFileCopyPartEx-linux.cpp
index 69cc3da..c58cb59 100644
--- a/src/VBox/Runtime/r3/linux/RTFileCopyPartEx-linux.cpp
+++ b/src/VBox/Runtime/r3/linux/RTFileCopyPartEx-linux.cpp
@@ -63,8 +63,8 @@
static int32_t volatile g_fCopyFileRangeSupported = -1;
-DECLINLINE(loff_t)
-MyCopyFileRangeSysCall(int fdIn, loff_t *poffIn, int fdOut, loff_t *poffOut, size_t cbChunk, unsigned int fFlags)
+DECLINLINE(off_t)
+MyCopyFileRangeSysCall(int fdIn, off_t *poffIn, int fdOut, off_t *poffOut, size_t cbChunk, unsigned int fFlags)
{
return syscall(__NR_copy_file_range, fdIn, poffIn, fdOut, poffOut, cbChunk, fFlags);
}
@@ -144,8 +144,8 @@ RTDECL(int) RTFileCopyPartEx(RTFILE hFileSrc, RTFOFF offSrc, RTFILE hFileDst, RT
do
{
size_t cbThisCopy = (size_t)RT_MIN(cbToCopy - cbCopied, _1G);
- loff_t offThisDst = offSrc + cbCopied;
- loff_t offThisSrc = offDst + cbCopied;
+ off_t offThisDst = offSrc + cbCopied;
+ off_t offThisSrc = offDst + cbCopied;
ssize_t cbActual = MyCopyFileRangeSysCall((int)RTFileToNative(hFileSrc), &offThisSrc,
(int)RTFileToNative(hFileDst), &offThisDst,
cbThisCopy, 0);
|