aboutsummaryrefslogtreecommitdiffstats
path: root/package/xfsprogs/patches/110-uclibc_no_ustat.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-02-16 18:20:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-02-16 18:20:30 +0000
commit46d9192ffbe934486945d5cdc5cd1e20605daa4b (patch)
tree15adbe19ee8e9006efd38400add12503b14a8bf7 /package/xfsprogs/patches/110-uclibc_no_ustat.patch
parent8cd25b0fd33a88a3eca1d78ed661d6320bd88e7c (diff)
downloadmaster-187ad058-46d9192ffbe934486945d5cdc5cd1e20605daa4b.tar.gz
master-187ad058-46d9192ffbe934486945d5cdc5cd1e20605daa4b.tar.bz2
master-187ad058-46d9192ffbe934486945d5cdc5cd1e20605daa4b.zip
add a package for xfsprogs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25558 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/xfsprogs/patches/110-uclibc_no_ustat.patch')
-rw-r--r--package/xfsprogs/patches/110-uclibc_no_ustat.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/package/xfsprogs/patches/110-uclibc_no_ustat.patch b/package/xfsprogs/patches/110-uclibc_no_ustat.patch
new file mode 100644
index 0000000000..9cd2dc2bb9
--- /dev/null
+++ b/package/xfsprogs/patches/110-uclibc_no_ustat.patch
@@ -0,0 +1,28 @@
+--- a/libxfs/linux.c
++++ b/libxfs/linux.c
+@@ -21,7 +21,9 @@
+ #include <mntent.h>
+ #include <sys/stat.h>
+ #undef ustat
++#ifndef __UCLIBC__
+ #include <sys/ustat.h>
++#endif
+ #include <sys/mount.h>
+ #include <sys/ioctl.h>
+ #include <sys/sysinfo.h>
+@@ -49,6 +51,7 @@ static int max_block_alignment;
+ int
+ platform_check_ismounted(char *name, char *block, struct stat64 *s, int verbose)
+ {
++#ifndef __UCLIBC__
+ /* Pad ust; pre-2.6.28 linux copies out too much in 32bit compat mode */
+ struct ustat ust[2];
+ struct stat64 st;
+@@ -68,6 +71,7 @@ platform_check_ismounted(char *name, cha
+ progname, name);
+ return 1;
+ }
++#endif
+ return 0;
+ }
+