mirror of
https://git.freebsd.org/ports.git
synced 2025-07-02 18:10:38 -04:00
After src commit 66c5fbca7719dca1ac361a010fa511a4514a662d, insmntque1() changed to have only 2 arguments, breaking open-vm-tools. Added a patch to call the new version on recent current and call destructor to make sure it runs. Suggested by: kib Sponsored by: Rubicon Communications, LLC ("Netgate")
17 lines
539 B
C
17 lines
539 B
C
--- modules/freebsd/vmblock/subr.c.orig 2022-02-04 12:59:09 UTC
|
|
+++ modules/freebsd/vmblock/subr.c
|
|
@@ -392,7 +392,13 @@ VMBlockNodeGet(struct mount *mp, // IN: VMBlock
|
|
}
|
|
|
|
/* Before FreeBSD 7, insmntque was called by getnewvnode. */
|
|
-#if __FreeBSD_version >= 700055
|
|
+#if __FreeBSD_version >= 1400051
|
|
+ error = insmntque1(vp, mp);
|
|
+ if (error != 0) {
|
|
+ VMBlockInsMntQueDtr(vp, xp);
|
|
+ return error;
|
|
+ }
|
|
+#else
|
|
error = insmntque1(vp, mp, VMBlockInsMntQueDtr, xp);
|
|
if (error != 0) {
|
|
return error;
|