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

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

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

  • Property mode set to 100644
File size: 904 bytes
Line 
1--- modules/freebsd/vmhgfs/state.c.orig 2010-10-20 05:19:54.000000000 +0900
2+++ modules/freebsd/vmhgfs/state.c      2010-11-16 13:27:57.000000000 +0900
3@@ -770,6 +770,12 @@
4       goto destroyVnode;
5    }
6 
7+#if __FreeBSD_version >= 700034
8+   if ((ret = insmntque(vp, vfsp)) != 0) {
9+      return ret;
10+   }
11+#endif
12+
13    /*
14     * Now we'll initialize the vnode.  We need to set the file type, vnode
15     * operations, flags, filesystem pointer, reference count, and device.
16@@ -1277,6 +1283,7 @@
17  *----------------------------------------------------------------------------
18  */
19 
20+#if 0 /* never used */
21 void
22 HgfsMarkFileMmapped(struct vnode *vp,    // vnode which state is being changed
23                     Bool mmapped)        // New mapping state
24@@ -1286,6 +1293,7 @@
25    fp = HGFS_VP_TO_FP(vp);
26    fp->mmapped = mmapped;
27 }
28+#endif
29 
30 /* Adding/finding/removing file state from hash table */
31 
Note: See TracBrowser for help on using the repository browser.