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