From: Oliver Kurth Date: Fri, 2 Nov 2018 22:28:26 +0000 (-0700) Subject: Hide static function declaration for Linux from FreeBSD and Solaris OVT X-Git-Tag: stable-11.0.0~317 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb5601064604433688f10dacd3ca12a34e629cdb;p=thirdparty%2Fopen-vm-tools.git Hide static function declaration for Linux from FreeBSD and Solaris OVT 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. --- diff --git a/open-vm-tools/vmhgfs-fuse/cache.c b/open-vm-tools/vmhgfs-fuse/cache.c index db89bedc6..a60f64171 100644 --- a/open-vm-tools/vmhgfs-fuse/cache.c +++ b/open-vm-tools/vmhgfs-fuse/cache.c @@ -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,