1From 0a5032669951ffd6735c294a6f309b0ec6667ea5 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Sun, 8 Mar 2020 18:49:00 +0100 4Subject: [PATCH] open-vm-tools/vmhgfs-fuse/fsutils.h: fix build on musl 5 6loff_t is not defined on musl so define it to avoid the following build 7failure: 8 9In file included from module.h:39, 10 from bdhandler.c:31: 11fsutil.h:76:11: error: unknown type name 'loff_t'; did you mean 'off_t'? 12 loff_t offset); 13 ^~~~~~ 14 off_t 15 16Fixes: 17 - http://autobuild.buildroot.org/results/4eba7c4585d318efdb9b965d58d879426588aa14 18 19Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 20[Upstream status: not sent yet (upstream is not reactive on third patch] 21--- 22 vmhgfs-fuse/fsutil.h | 3 ++- 23 1 file changed, 2 insertions(+), 1 deletion(-) 24 25diff --git a/vmhgfs-fuse/fsutil.h b/vmhgfs-fuse/fsutil.h 26index 34b6d489..a94f9fbb 100644 27--- a/vmhgfs-fuse/fsutil.h 28+++ b/vmhgfs-fuse/fsutil.h 29@@ -32,7 +32,8 @@ 30 #include "hgfsProto.h" 31 #include <fuse.h> 32 33-#if defined(__FreeBSD__) || defined(__SOLARIS__) || defined(__APPLE__) 34+#if defined(__FreeBSD__) || defined(__SOLARIS__) || defined(__APPLE__) || \ 35+ !(defined(__GLIBC__) || defined(__UCLIBC__)) 36 typedef long long loff_t; 37 #endif 38 39-- 402.25.0 41 42