From: Elliott Hughes Date: Fri, 28 Feb 2014 23:16:32 +0000 (+0000) Subject: Fix decoding of arm struct stat64 by aarch64 strace. X-Git-Tag: v4.9~111 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fb642bb6d63f7ffe2228bf48a6008bc8f56f67ff;p=platform%2Fupstream%2Fstrace.git Fix decoding of arm struct stat64 by aarch64 strace. aarch64's uapi header files have a struct stat but no struct stat64. To correctly decode a 32-bit process' s struct stat64 we need HAVE_STAT64, but then the build fails because there is no struct stat64. Luckily, the aarch64 struct stat is structurally equivalent to the arm struct stat64, so we can just reuse that. * file.c [AARCH64] (stat64): Define to stat. Signed-off-by: Elliott Hughes --- diff --git a/file.c b/file.c index 83ace8c1..7e0773d0 100644 --- a/file.c +++ b/file.c @@ -181,6 +181,10 @@ struct __old_kernel_stat { #undef st_mtime #undef st_ctime +#ifdef AARCH64 +#define stat64 stat +#endif /* AARCH64 */ + #include #ifdef HAVE_SYS_VFS_H # include