diff options
author | Elliott Hughes <enh@google.com> | 2014-02-28 23:16:32 +0000 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2014-02-28 23:35:05 +0000 |
commit | fb642bb6d63f7ffe2228bf48a6008bc8f56f67ff (patch) | |
tree | 892bc05eb0a6e03e903ff19a25c41486656df3d8 /file.c | |
parent | 1d912aff16f51b055668cf639d0ee89ab262efe1 (diff) | |
download | strace-fb642bb6d63f7ffe2228bf48a6008bc8f56f67ff.tar.gz strace-fb642bb6d63f7ffe2228bf48a6008bc8f56f67ff.tar.bz2 strace-fb642bb6d63f7ffe2228bf48a6008bc8f56f67ff.tar.xz |
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 <enh@google.com>
Diffstat (limited to 'file.c')
-rw-r--r-- | file.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -181,6 +181,10 @@ struct __old_kernel_stat { #undef st_mtime #undef st_ctime +#ifdef AARCH64 +#define stat64 stat +#endif /* AARCH64 */ + #include <fcntl.h> #ifdef HAVE_SYS_VFS_H # include <sys/vfs.h> |