]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Hide static function declaration for Linux from FreeBSD and Solaris OVT
authorOliver Kurth <okurth@vmware.com>
Fri, 2 Nov 2018 22:28:26 +0000 (15:28 -0700)
committerOliver Kurth <okurth@vmware.com>
Fri, 2 Nov 2018 22:28:26 +0000 (15:28 -0700)
A recent change introduced a new static function
HgfsInvalidateParentsChildren() in bora-vmsoft/hgfs/fuse/cache.c. That
function is defined and called only in Linux builds.

The static function declaration should not be visible on FreeBSD OVT
builds.

open-vm-tools/vmhgfs-fuse/cache.c

index db89bedc6c58f2e653a216163e69cd1605b52161..a60f6417143e578231a534c5221b1d5dc2caeb63 100644 (file)
@@ -55,7 +55,10 @@ struct HgfsAttrCache attrList;
 
 /*Lock for accessing the attribute cache*/
 static pthread_mutex_t HgfsAttrCacheLock = PTHREAD_MUTEX_INITIALIZER;
+
+#if !defined(__FreeBSD__) && !defined(__SOLARIS__)
 static void HgfsInvalidateParentsChildren(const char* parent);
+#endif
 
 /*
  * Lists are used to manage attribute cache in Solaris and FreeBSD,