|
@@ -31,9 +31,11 @@ int statfs64 (const char *file, struct statfs64 *buf)
|
|
{
|
|
{
|
|
struct statfs buf32;
|
|
struct statfs buf32;
|
|
|
|
|
|
- if (__libc_statfs (file, &buf32) < 0)
|
|
+ if (__libc_statfs (file, (struct statfs *)buf) < 0)
|
|
return -1;
|
|
return -1;
|
|
|
|
|
|
|
|
+ buf32 = *(struct statfs *)buf;
|
|
|
|
+
|
|
buf->f_type = buf32.f_type;
|
|
buf->f_type = buf32.f_type;
|
|
buf->f_bsize = buf32.f_bsize;
|
|
buf->f_bsize = buf32.f_bsize;
|
|
buf->f_blocks = buf32.f_blocks;
|
|
buf->f_blocks = buf32.f_blocks;
|