diff options
author | Stefan Weil | 2013-10-30 22:52:24 +0100 |
---|---|---|
committer | Stefan Weil | 2013-11-07 07:02:44 +0100 |
commit | 20d155bc902f41c5b354937e730ad85b43614ae9 (patch) | |
tree | b9de09c550bb75d95df444fffd7eb82bc88ba5de /linux-user/syscall.c | |
parent | configure: Add config.status to recreate the current configuration (diff) | |
download | qemu-20d155bc902f41c5b354937e730ad85b43614ae9.tar.gz qemu-20d155bc902f41c5b354937e730ad85b43614ae9.tar.xz qemu-20d155bc902f41c5b354937e730ad85b43614ae9.zip |
linux-user: Fix stat64 syscall for SPARC64
Some targets use a stat64 structure for the stat64 syscall while others
use a stat structure. SPARC64 used the wrong kind.
Instead of extending the conditional compilation in syscall.c, now a
macro TARGET_HAS_STRUCT_STAT64 is defined whenever a target has a
target_stat64.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Reviewed-by: Erik de Castro Lopo <erikd@mega-nerd.com>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 4a14a43037..eaaf00ddd0 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -4870,10 +4870,10 @@ static inline abi_long host_to_target_stat64(void *cpu_env, } else #endif { -#if TARGET_ABI_BITS == 64 && !defined(TARGET_ALPHA) - struct target_stat *target_st; -#else +#if defined(TARGET_HAS_STRUCT_STAT64) struct target_stat64 *target_st; +#else + struct target_stat *target_st; #endif if (!lock_user_struct(VERIFY_WRITE, target_st, target_addr, 0)) |