From d2658f71c3d09034068bc6f7a115f44ce9535ad8 Mon Sep 17 00:00:00 2001 From: Mark Wielaard Date: Fri, 23 Aug 2019 22:17:57 +0200 Subject: [PATCH] arm64 fixup for statx support on older kernels Turns out (older) arm64 linux kernels don't have statx, but also not stat64 and no stat syscalls. It uses fstatat instead. The new statx patch also added a check for stat. So That needs a special case for arm64. Follow up for bug #400593. --- coregrind/m_libcfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coregrind/m_libcfile.c b/coregrind/m_libcfile.c index 5c356ade6..c7fca4e9a 100644 --- a/coregrind/m_libcfile.c +++ b/coregrind/m_libcfile.c @@ -393,7 +393,7 @@ SysRes VG_(stat) ( const HChar* file_name, struct vg_stat* vgbuf ) } } # endif /* defined(__NR_stat64) */ -# if defined(__NR_stat) +# if defined(__NR_stat) || defined(VGP_arm64_linux) /* This is the fallback ("vanilla version"). */ { struct vki_stat buf; # if defined(VGP_arm64_linux) -- 2.11.4.GIT