summaryrefslogtreecommitdiff
path: root/user/virtualbox-guest-additions/musl-off_t.patch
blob: a334364e0e5e98059da365fd144598b3a4120b55 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- VirtualBox-7.0.0.orig/src/VBox/Runtime/r3/linux/RTFileCopyPartEx-linux.cpp
+++ VirtualBox-7.0.0/src/VBox/Runtime/r3/linux/RTFileCopyPartEx-linux.cpp
@@ -73,8 +73,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);
 }
@@ -154,8 +154,8 @@
     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);