aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-19 09:38:52 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-07-19 09:38:52 +0000
commitc4d10628c141599dd735842814d4f17ee402cfb4 (patch)
tree3bb779605417cca288b120a76ab386a776d0fb6a
parent846787113a3c5beb010145c2870ca163c5d21497 (diff)
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
-rw-r--r--linux-user/syscall_defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux-user/syscall_defs.h b/linux-user/syscall_defs.h
index d2810f27cb..52242b6202 100644
--- a/linux-user/syscall_defs.h
+++ b/linux-user/syscall_defs.h
@@ -1570,7 +1570,8 @@ struct target_statfs64 {
uint32_t f_namelen;
uint32_t f_spare[6];
};
-#elif defined(TARGET_PPC64) && !defined(TARGET_ABI32)
+#elif (defined(TARGET_PPC64) || defined(TARGET_X86_64) || \
+ defined(TARGET_SPARC64)) && !defined(TARGET_ABI32)
struct target_statfs {
abi_long f_type;
abi_long f_bsize;