From 460e93e48af6e677b9f67ef65867bb479cccc0b8 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 27 Feb 2020 10:27:41 +0100 Subject: [PATCH] aarch64: use correct VSYSCALL definition for ILP32 --- sysdeps/unix/sysv/linux/aarch64/sysdep.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysdeps/unix/sysv/linux/aarch64/sysdep.h b/sysdeps/unix/sysv/linux/aarch64/sysdep.h index 3059b8a147c..03e62e803fc 100644 --- a/sysdeps/unix/sysv/linux/aarch64/sysdep.h +++ b/sysdeps/unix/sysv/linux/aarch64/sysdep.h @@ -160,8 +160,13 @@ # endif /* List of system calls which are supported as vsyscalls. */ +# ifdef __LP64__ # define HAVE_CLOCK_GETRES64_VSYSCALL "__kernel_clock_getres" # define HAVE_CLOCK_GETTIME64_VSYSCALL "__kernel_clock_gettime" +# else +# define HAVE_CLOCK_GETRES_VSYSCALL "__kernel_clock_getres" +# define HAVE_CLOCK_GETTIME_VSYSCALL "__kernel_clock_gettime" +# endif # define HAVE_GETTIMEOFDAY_VSYSCALL "__kernel_gettimeofday" /* Previously AArch64 used the generic version without the libc_hidden_def -- 2.47.2