]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Hgfs Server: Fix the tools build
authorOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:49 +0000 (11:23 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 15 Sep 2017 18:23:49 +0000 (11:23 -0700)
Make the HgfsServerAsyncInfoIncCount to be VMX code only as the current
usage is not in the tools implementation.

open-vm-tools/lib/hgfsServer/hgfsServer.c

index fb911da3fbe8b17e61180dec92322c3924f55182..e008ea42edd6550ddc0b9a5e30c7a7e43317a0c8 100644 (file)
@@ -266,8 +266,10 @@ typedef struct HgfsSharedFolderProperties {
 
 
 /* Allocate/Add sessions helper functions. */
+#ifndef VMX86_TOOLS
 static void
 HgfsServerAsyncInfoIncCount(HgfsAsyncRequestInfo *info);
+#endif
 
 static Bool
 HgfsServerAllocateSession(HgfsTransportSessionInfo *transportSession,
@@ -4538,6 +4540,7 @@ HgfsServerAsyncInfoDecCount(HgfsAsyncRequestInfo *info) // IN/OUT: info
 }
 
 
+#ifndef VMX86_TOOLS
 /*
  *-----------------------------------------------------------------------------
  *
@@ -4560,6 +4563,7 @@ HgfsServerAsyncInfoIncCount(HgfsAsyncRequestInfo *info) // IN/OUT: info
 {
    Atomic_Inc(&info->requestCount);
 }
+#endif // VMX86_TOOLS
 
 
 /*