aboutsummaryrefslogtreecommitdiffstats
path: root/community/virtualbox-guest-additions/musl-off_t.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-06-12 10:00:57 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-06-12 10:01:11 +0000
commit5bdae676ba313c3402b64ffe6f379c5b43019998 (patch)
tree24412a7b21160601a9acb14593abff74ee1d1863 /community/virtualbox-guest-additions/musl-off_t.patch
parentfdbd8eeac04703fb212d6d33758231dc926c8fae (diff)
downloadaports-5bdae676ba313c3402b64ffe6f379c5b43019998.tar.bz2
aports-5bdae676ba313c3402b64ffe6f379c5b43019998.tar.xz
community/virtualbox-guest-additions: fix build
Diffstat (limited to 'community/virtualbox-guest-additions/musl-off_t.patch')
-rw-r--r--community/virtualbox-guest-additions/musl-off_t.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/community/virtualbox-guest-additions/musl-off_t.patch b/community/virtualbox-guest-additions/musl-off_t.patch
new file mode 100644
index 0000000000..ba3f4af58f
--- /dev/null
+++ b/community/virtualbox-guest-additions/musl-off_t.patch
@@ -0,0 +1,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);