source: build-files/ports-overlay/emulators/open-vm-tools/files/patch-vmblock-vnops.c @ 1e102bd

9.2-releasereleng/10.0releng/10.0.1releng/10.0.2releng/10.0.3releng/10.1
Last change on this file since 1e102bd was 1e102bd, checked in by Kris Moore <kris@…>, 13 months ago

Add a bunch of modified ports for 10.0, so we can fix the building

  • Property mode set to 100644
File size: 558 bytes
Line 
1--- modules/freebsd/vmblock/vnops.c.orig        2011-09-21 14:25:15.000000000 -0400
2+++ modules/freebsd/vmblock/vnops.c     2012-06-28 20:51:22.897344202 -0400
3@@ -1362,7 +1362,9 @@
4 */
5 {
6    struct vnode *vp = ap->a_vp;
7+#if __FreeBSD_version < 1000000
8    struct thread *td = ap->a_td;
9+#endif
10 
11    vp->v_object = NULL;
12 
13@@ -1370,7 +1372,11 @@
14     * If this is the last reference, then free up the vnode so as not to
15     * tie up the lower vnode.
16     */
17+#if __FreeBSD_version < 1000000
18    vrecycle(vp, td);
19+#else
20+   vrecycle(vp);
21+#endif
22 
23    return 0;
24 }
Note: See TracBrowser for help on using the repository browser.