2
1

0011-open-vm-tools-vmhgfs-fuse-fsutils.h-fix-build-on-mus.patch 1.3 KB

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