cosmetic: remove trailing whitespaces
[openwrt-github/.git] / package / utils / xfsprogs / patches / 110-uclibc_no_ustat.patch
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,6 @@
12  #include <mntent.h>
13  #include <sys/stat.h>
14  #undef ustat
15 -#include <sys/ustat.h>
16  #include <sys/mount.h>
17  #include <sys/ioctl.h>
18  #include <sys/sysinfo.h>
19 @@ -49,6 +51,7 @@ static int max_block_alignment;
20  int
21  platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose)
22  {
23 +#if 0
24         /* Pad ust; pre-2.6.28 linux copies out too much in 32bit compat mode */
25         struct ustat    ust[2];
26         struct stat64   st;
27 @@ -68,6 +71,7 @@ platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose)
28                                 progname, name);
29                 return 1;
30         }
31 +#endif
32         return 0;
33  }
34