diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-08-30 13:50:29 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-08-30 13:50:37 +0200 |
| commit | 13b72df762476b13a6bc6e1cb1e7fa622068224d (patch) | |
| tree | 9a6999802753d15d1c80a7337ed5744e8b8df485 /src/libtools | |
| parent | 95b38b7f7936f8acff5f0b206251a4955df812bd (diff) | |
| download | box64-13b72df762476b13a6bc6e1cb1e7fa622068224d.tar.gz box64-13b72df762476b13a6bc6e1cb1e7fa622068224d.zip | |
[BOX32] Define native_statvfs to avoid build errors
Diffstat (limited to 'src/libtools')
| -rwxr-xr-x | src/libtools/myalign64_32.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/src/libtools/myalign64_32.c b/src/libtools/myalign64_32.c index 77418da1..f740c4f2 100755 --- a/src/libtools/myalign64_32.c +++ b/src/libtools/myalign64_32.c @@ -79,10 +79,29 @@ void UnalignStatFS64_32(const void* source, void* dest) i386st->f_spare[3] = st->f_spare[3]; } +struct native_statvfs { + unsigned long int f_bsize; + unsigned long int f_frsize; + __fsblkcnt64_t f_blocks; + __fsblkcnt64_t f_bfree; + __fsblkcnt64_t f_bavail; + __fsfilcnt64_t f_files; + __fsfilcnt64_t f_ffree; + __fsfilcnt64_t f_favail; + unsigned long int f_fsid; +#ifdef _STATVFSBUF_F_UNUSED + int __f_unused; +#endif + unsigned long int f_flag; + unsigned long int f_namemax; + unsigned int f_type; + int __f_spare[5]; +}; + void UnalignStatVFS64_32(const void* source, void* dest) { struct i386_statvfs64 *i386st = (struct i386_statvfs64*)dest; - struct statvfs *st = (struct statvfs*) source; + struct native_statvfs *st = (struct native_statvfs*) source; i386st->f_bsize = st->f_bsize; i386st->f_frsize = st->f_frsize; |