110-uclibc_no_ustat.patch 867 B

12345678910111213141516171819202122232425262728293031323334
  1. commit 7b1d0a98e779170232c0a81b4749ab934ec67a7e
  2. Author: Jens Muecke <jens@nons.de>
  3. Date: Thu Jan 26 00:36:42 2012 +0100
  4. 110-uclibc_no_ustat
  5. diff --git a/libxfs/linux.c b/libxfs/linux.c
  6. index 2e07d54..6a6c905 100644
  7. --- a/libxfs/linux.c
  8. +++ b/libxfs/linux.c
  9. @@ -21,7 +21,6 @@
  10. #include <mntent.h>
  11. #include <sys/stat.h>
  12. #undef ustat
  13. -#include <sys/ustat.h>
  14. #include <sys/mount.h>
  15. #include <sys/ioctl.h>
  16. #include <sys/sysinfo.h>
  17. @@ -49,6 +51,7 @@ static int max_block_alignment;
  18. int
  19. platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose)
  20. {
  21. +#if 0
  22. /* Pad ust; pre-2.6.28 linux copies out too much in 32bit compat mode */
  23. struct ustat ust[2];
  24. struct stat64 st;
  25. @@ -68,6 +71,7 @@ platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose)
  26. progname, name);
  27. return 1;
  28. }
  29. +#endif
  30. return 0;
  31. }