2
1

0004-xfs_scrub-add-missing-paths-header.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 27747dcbfbde8a767b1a873716fce1d3aaf17c2f Mon Sep 17 00:00:00 2001
  2. From: Baruch Siach <baruch@tkos.co.il>
  3. Date: Fri, 16 Mar 2018 07:16:19 +0200
  4. Subject: [PATCH] xfs_scrub: add missing paths header
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. Fix the following build failure with musl libc:
  9. xfs_scrub.c: In function ‘main’:
  10. xfs_scrub.c:670:11: error: ‘_PATH_MOUNTED’ undeclared (first use in this function)
  11. mtab = _PATH_MOUNTED;
  12. ^~~~~~~~~~~~~
  13. Signed-off-by: Baruch Siach <baruch@tkos.co.il>
  14. ---
  15. Upstream status: https://marc.info/?l=linux-xfs&m=152117771313566&w=2
  16. scrub/xfs_scrub.c | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/scrub/xfs_scrub.c b/scrub/xfs_scrub.c
  19. index ab26e6335948..eedbe34ec7b3 100644
  20. --- a/scrub/xfs_scrub.c
  21. +++ b/scrub/xfs_scrub.c
  22. @@ -21,6 +21,7 @@
  23. #include <pthread.h>
  24. #include <stdbool.h>
  25. #include <stdlib.h>
  26. +#include <paths.h>
  27. #include <sys/time.h>
  28. #include <sys/resource.h>
  29. #include <sys/statvfs.h>
  30. --
  31. 2.16.2