mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-18 13:08:07 +02:00
29 lines
645 B
Diff
29 lines
645 B
Diff
|
--- 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;
|
||
|
}
|
||
|
|