aboutsummaryrefslogblamecommitdiffstats
path: root/community/virtualbox-guest-additions/musl-off_t.patch
blob: ba3f4af58f557d7a8c40b1e7149282b254873803 (plain) (tree)

























                                                                                                                        
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);