ports/emulators/open-vm-tools/files/patch-hgfsProto.h
Tijl Coosemans cfea1fe89d - Fix build with clang and recent kernel API changes.
- Use new style LIB_DEPENDS.

PR:		173038, 174290, 180499
Submitted by:	Garrett Cooper <yaneurabeya@gmail.com>
Approved by:	swills (maintainer)
2013-10-19 14:39:55 +00:00

22 lines
822 B
C

--- lib/include/hgfsProto.h.orig
+++ lib/include/hgfsProto.h
@@ -148,6 +148,9 @@
HGFS_OP_SET_EAS_V4, /* Add or modify extended attributes. */
HGFS_OP_MAX, /* Dummy op, must be last in enum */
+
+/* If a V4 packet is being processed as a legacy packet it will have this opcode. */
+ HGFS_V4_LEGACY_OPCODE = 0xff,
} HgfsOp;
@@ -155,9 +158,6 @@
#define HGFS_VERSION_OLD (1 << 0)
#define HGFS_VERSION_3 (1 << 1)
-/* If a V4 packet is being processed as a legacy packet it will have this opcode. */
-#define HGFS_V4_LEGACY_OPCODE 0xff
-
/* XXX: Needs change when VMCI is supported. */
#define HGFS_REQ_PAYLOAD_SIZE_V3(hgfsReq) (sizeof *hgfsReq + sizeof(HgfsRequest))
#define HGFS_REP_PAYLOAD_SIZE_V3(hgfsRep) (sizeof *hgfsRep + sizeof(HgfsReply))