From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:49 +0000 (-0700) Subject: Hgfs Server: Fix the tools build X-Git-Tag: stable-10.2.0~113 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=94e8e7478d2528466d0eecbd29aa441f748a4235;p=thirdparty%2Fopen-vm-tools.git Hgfs Server: Fix the tools build Make the HgfsServerAsyncInfoIncCount to be VMX code only as the current usage is not in the tools implementation. --- diff --git a/open-vm-tools/lib/hgfsServer/hgfsServer.c b/open-vm-tools/lib/hgfsServer/hgfsServer.c index fb911da3f..e008ea42e 100644 --- a/open-vm-tools/lib/hgfsServer/hgfsServer.c +++ b/open-vm-tools/lib/hgfsServer/hgfsServer.c @@ -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 /*