diff options
author | Guido Falsi <madpilot@FreeBSD.org> | 2021-10-17 09:28:09 +0000 |
---|---|---|
committer | Guido Falsi <madpilot@FreeBSD.org> | 2021-10-17 09:32:33 +0000 |
commit | 21d79d6e16aab2e3aa337901b0f6519c942c55ee (patch) | |
tree | 50e48d4994ad44001f982a3c15fe0c2ba52a096a | |
parent | 4df137cb79d691b866686360de2fa8e69719d079 (diff) | |
download | ports-21d79d6e16aab2e3aa337901b0f6519c942c55ee.tar.gz ports-21d79d6e16aab2e3aa337901b0f6519c942c55ee.zip |
emulators/virtualbox-ose-additons: Fix build on recent head
Fix build after head commit b4a58fbf640409a1 (vfs: remove cn_thread)
MFH: 2021Q4
-rw-r--r-- | emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c b/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c index 904c251395dd..068f98f21d1c 100644 --- a/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c +++ b/emulators/virtualbox-ose/files/patch-src_VBox_Additions_freebsd_vboxvfs_vboxvfs__vnops.c @@ -1,6 +1,6 @@ --- src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vnops.c.orig 2021-07-28 16:16:27 UTC +++ src/VBox/Additions/freebsd/vboxvfs/vboxvfs_vnops.c -@@ -14,228 +14,1350 @@ +@@ -14,228 +14,1354 @@ * VirtualBox OSE distribution. VirtualBox OSE is distributed in the * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. */ @@ -1397,7 +1397,11 @@ + cnp->cn_flags & DOWHITEOUT && + cnp->cn_flags & ISWHITEOUT))) { + error = VOP_ACCESS(dvp, VWRITE, cnp->cn_cred, ++#if __FreeBSD_version < 1400037 + cnp->cn_thread); ++#else ++ curthread); ++#endif + if (error != 0) + goto out; + |