1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-29 06:19:54 +02:00
openwrt-xburst/package/xfsprogs/patches/110-uclibc_no_ustat.patch
ryd c0f7b08bdc Update xfsprogs to 3.1.4 to 3.1.7
Changelog at http://xfs.org/index.php/XFS_Status_Updates



git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30965 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-03-17 21:30:31 +00:00

37 lines
908 B
Diff

commit 7b1d0a98e779170232c0a81b4749ab934ec67a7e
Author: Jens Muecke <jens@nons.de>
Date: Thu Jan 26 00:36:42 2012 +0100
110-uclibc_no_ustat
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 @@
#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, char *block, struct stat64 *s, int verbose)
progname, name);
return 1;
}
+#endif
return 0;
}