Commit c4d10628c141599dd735842814d4f17ee402cfb4
1 parent
84678711
linux-user: Fix target_statfs[64] on 64-bit hosts
Testing qemu-x86_64, I happen to run df and came across these mistakes in the target_statfs/target_statfs64 structure definitions (reference: linux/include/asm-x86/statfs.h). Signed-off-by: Jan Kiszka <jan.kiszka@web.de> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4895 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
1 deletions
linux-user/syscall_defs.h
... | ... | @@ -1570,7 +1570,8 @@ struct target_statfs64 { |
1570 | 1570 | uint32_t f_namelen; |
1571 | 1571 | uint32_t f_spare[6]; |
1572 | 1572 | }; |
1573 | -#elif defined(TARGET_PPC64) && !defined(TARGET_ABI32) | |
1573 | +#elif (defined(TARGET_PPC64) || defined(TARGET_X86_64) || \ | |
1574 | + defined(TARGET_SPARC64)) && !defined(TARGET_ABI32) | |
1574 | 1575 | struct target_statfs { |
1575 | 1576 | abi_long f_type; |
1576 | 1577 | abi_long f_bsize; | ... | ... |