diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-15 22:59:22 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-06-22 12:09:52 -0300 |
commit | 4b6551902e5c701e5f3156928d88aadeb6487dc1 (patch) | |
tree | 649838f67122ab73d87565f5f97f27749183562c /sysdeps/unix/sysv/linux | |
parent | 9465c3a9fb557d7ab98b1f2ecd0b8c28c43a8539 (diff) | |
download | glibc-4b6551902e5c701e5f3156928d88aadeb6487dc1.tar glibc-4b6551902e5c701e5f3156928d88aadeb6487dc1.tar.gz glibc-4b6551902e5c701e5f3156928d88aadeb6487dc1.tar.bz2 glibc-4b6551902e5c701e5f3156928d88aadeb6487dc1.zip |
linux: timerfd_gettime minor cleanup
The __NR_timerfd_gettime64 is always defined.
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Diffstat (limited to 'sysdeps/unix/sysv/linux')
-rw-r--r-- | sysdeps/unix/sysv/linux/timerfd_gettime.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sysdeps/unix/sysv/linux/timerfd_gettime.c b/sysdeps/unix/sysv/linux/timerfd_gettime.c index 89f8066b91..df2359990e 100644 --- a/sysdeps/unix/sysv/linux/timerfd_gettime.c +++ b/sysdeps/unix/sysv/linux/timerfd_gettime.c @@ -25,17 +25,16 @@ int __timerfd_gettime64 (int fd, struct __itimerspec64 *value) { +#ifndef __NR_timerfd_gettime64 +# define __NR_timerfd_gettime64 __NR_timerfd_gettime +#endif + #ifdef __ASSUME_TIME64_SYSCALLS -# ifndef __NR_timerfd_gettime64 -# define __NR_timerfd_gettime64 __NR_timerfd_gettime -# endif return INLINE_SYSCALL_CALL (timerfd_gettime64, fd, value); #else -# ifdef __NR_timerfd_gettime64 int ret = INLINE_SYSCALL_CALL (timerfd_gettime64, fd, value); if (ret == 0 || errno != ENOSYS) return ret; -# endif struct itimerspec its32; int retval = INLINE_SYSCALL_CALL (timerfd_gettime, fd, &its32); if (retval == 0) |