tools/libressl: update to 2.5.4
[openwrt/openwrt.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 --- 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 +48,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 +68,7 @@ platform_check_ismounted(char *name, cha
26 progname, name);
27 return 1;
28 }
29 +#endif
30 return 0;
31 }
32