1
0

110-uclibc_no_ustat.patch 752 B

1234567891011121314151617181920212223242526272829303132
  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. --- a/libxfs/linux.c
  6. +++ b/libxfs/linux.c
  7. @@ -21,7 +21,6 @@
  8. #include <mntent.h>
  9. #include <sys/stat.h>
  10. #undef ustat
  11. -#include <sys/ustat.h>
  12. #include <sys/mount.h>
  13. #include <sys/ioctl.h>
  14. #include <sys/sysinfo.h>
  15. @@ -49,6 +48,7 @@ static int max_block_alignment;
  16. int
  17. platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose)
  18. {
  19. +#if 0
  20. /* Pad ust; pre-2.6.28 linux copies out too much in 32bit compat mode */
  21. struct ustat ust[2];
  22. struct stat64 st;
  23. @@ -68,6 +68,7 @@ platform_check_ismounted(char *name, cha
  24. progname, name);
  25. return 1;
  26. }
  27. +#endif
  28. return 0;
  29. }