diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2019-12-11 11:13:50 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2020-01-03 11:22:07 -0300 |
commit | ff500a623d1bf9fb24f30fa80451897b534549e1 (patch) | |
tree | 135d612e49cd8d6ec19ece7ca5bf16b9d25177be /sysdeps/unix/sysv/linux/s390/sysdep.h | |
parent | 1bdda52fe92fd01b424cd6fbb63e3df96a95015c (diff) | |
download | glibc-ff500a623d1bf9fb24f30fa80451897b534549e1.tar glibc-ff500a623d1bf9fb24f30fa80451897b534549e1.tar.gz glibc-ff500a623d1bf9fb24f30fa80451897b534549e1.tar.bz2 glibc-ff500a623d1bf9fb24f30fa80451897b534549e1.zip |
linux: Add support for clock_gettime64 vDSO
No architecture currently defines the vDSO symbol. On architectures
with 64-bit time_t the HAVE_CLOCK_GETTIME_VSYSCALL is renamed to
HAVE_CLOCK_GETTIME64_VSYSCALL, it simplifies clock_gettime code.
Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'sysdeps/unix/sysv/linux/s390/sysdep.h')
-rw-r--r-- | sysdeps/unix/sysv/linux/s390/sysdep.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/s390/sysdep.h b/sysdeps/unix/sysv/linux/s390/sysdep.h index bb89e1192f..a53c8ff44b 100644 --- a/sysdeps/unix/sysv/linux/s390/sysdep.h +++ b/sysdeps/unix/sysv/linux/s390/sysdep.h @@ -21,6 +21,10 @@ /* List of system calls which are supported as vsyscalls. */ #define HAVE_CLOCK_GETRES_VSYSCALL "__kernel_clock_getres" +#ifdef __s390x__ +#define HAVE_CLOCK_GETTIME64_VSYSCALL "__kernel_clock_gettime" +#else #define HAVE_CLOCK_GETTIME_VSYSCALL "__kernel_clock_gettime" +#endif #define HAVE_GETTIMEOFDAY_VSYSCALL "__kernel_gettimeofday" #define HAVE_GETCPU_VSYSCALL "__kernel_getcpu" |