mirror of
				https://gitlab.alpinelinux.org/alpine/aports.git
				synced 2025-10-31 00:12:05 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| --- 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 @@
 | |
|      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);
 |