]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user: Fix stat64 syscall for SPARC64
authorStefan Weil <sw@weilnetz.de>
Wed, 30 Oct 2013 21:52:24 +0000 (22:52 +0100)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 4 Dec 2013 01:53:12 +0000 (19:53 -0600)
commit3bd74d1712c33a746b1aee45b809647f9353238c
treeab6fcac763a35c1f29e0b5072f4b86884b892a14
parentc554ddb901f7716e3288a555a0b4fd0cd1f028ab
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>
(cherry picked from commit 20d155bc902f41c5b354937e730ad85b43614ae9)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
linux-user/syscall.c
linux-user/syscall_defs.h