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>
#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>