0001-libfuse-util-include-paths.h-when-needed.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. From da021ed297ff7a69f3b7532ef68a9b6877a55265 Mon Sep 17 00:00:00 2001
  2. From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  3. Date: Sat, 20 Aug 2016 11:05:27 +0200
  4. Subject: [PATCH] libfuse-util: include <paths.h> when needed
  5. Both fusermount.c and mount_util.c use _PATH_MOUNTED, so they should
  6. include <paths.h>, which provides this definition.
  7. This fixes the build with the musl C library.
  8. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  9. ---
  10. libfuse-lite/fusermount.c | 1 +
  11. libfuse-lite/mount_util.c | 1 +
  12. 2 files changed, 2 insertions(+)
  13. diff --git a/libfuse-lite/fusermount.c b/libfuse-lite/fusermount.c
  14. index 4e724db..680fee1 100644
  15. --- a/libfuse-lite/fusermount.c
  16. +++ b/libfuse-lite/fusermount.c
  17. @@ -19,6 +19,7 @@
  18. #include <errno.h>
  19. #include <fcntl.h>
  20. #include <pwd.h>
  21. +#include <paths.h>
  22. #ifdef __SOLARIS__
  23. #include <sys/mnttab.h>
  24. diff --git a/libfuse-lite/mount_util.c b/libfuse-lite/mount_util.c
  25. index 8ea5e08..8b31722 100644
  26. --- a/libfuse-lite/mount_util.c
  27. +++ b/libfuse-lite/mount_util.c
  28. @@ -15,6 +15,7 @@
  29. #include <dirent.h>
  30. #include <errno.h>
  31. #include <limits.h>
  32. +#include <paths.h>
  33. #include <sys/stat.h>
  34. #include <sys/wait.h>
  35. #ifdef __SOLARIS__
  36. --
  37. 2.7.4