diff options
author | Felix Fietkau <nbd@openwrt.org> | 2014-06-09 13:47:44 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2014-06-09 13:47:44 +0000 |
commit | 422ee452538f8925949f06e564e89a5dc1f82a1d (patch) | |
tree | 199a91a4be9d14106cc7bf1764b1dc3307b3849c /package/utils/xfsprogs/patches/110-uclibc_no_ustat.patch | |
parent | 6de020d24128e74657b07b350d9213736c40242c (diff) | |
download | mtk-20170518-422ee452538f8925949f06e564e89a5dc1f82a1d.zip mtk-20170518-422ee452538f8925949f06e564e89a5dc1f82a1d.tar.gz mtk-20170518-422ee452538f8925949f06e564e89a5dc1f82a1d.tar.bz2 |
xfsprogs: fix compile errors with musl
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41058
Diffstat (limited to 'package/utils/xfsprogs/patches/110-uclibc_no_ustat.patch')
-rw-r--r-- | package/utils/xfsprogs/patches/110-uclibc_no_ustat.patch | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/package/utils/xfsprogs/patches/110-uclibc_no_ustat.patch b/package/utils/xfsprogs/patches/110-uclibc_no_ustat.patch index c46e802..071dfc1 100644 --- a/package/utils/xfsprogs/patches/110-uclibc_no_ustat.patch +++ b/package/utils/xfsprogs/patches/110-uclibc_no_ustat.patch @@ -8,13 +8,11 @@ diff --git a/libxfs/linux.c b/libxfs/linux.c index 2e07d54..6a6c905 100644 --- a/libxfs/linux.c +++ b/libxfs/linux.c -@@ -21,7 +21,9 @@ +@@ -21,7 +21,6 @@ #include <mntent.h> #include <sys/stat.h> #undef ustat -+#ifndef __UCLIBC__ - #include <sys/ustat.h> -+#endif +-#include <sys/ustat.h> #include <sys/mount.h> #include <sys/ioctl.h> #include <sys/sysinfo.h> @@ -22,7 +20,7 @@ index 2e07d54..6a6c905 100644 int platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose) { -+#ifndef __UCLIBC__ ++#if 0 /* Pad ust; pre-2.6.28 linux copies out too much in 32bit compat mode */ struct ustat ust[2]; struct stat64 st; |