From: Alistair Francis Date: Mon, 11 Nov 2019 23:07:19 +0000 (-0800) Subject: tst-clone3: Use __NR_futex_time64 if we don't have __NR_futex X-Git-Tag: upstream/2.34~2243 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6a9b6b08ea0fddad48d908729f866d3c30955ed;p=platform%2Fupstream%2Fglibc.git tst-clone3: Use __NR_futex_time64 if we don't have __NR_futex We can't include sysdep.h in the test case (it introduces lots of strange failures) so __NR_futex isn't redifined to __NR_futex_time64 by 64-bit time_t 32-bit archs (y2038 safe). To allow the test to pass let's just do the __NR_futex_time64 syscall if we don't have __NR_futex defined. Reviewed-by: Adhemerval Zanella --- diff --git a/sysdeps/unix/sysv/linux/tst-clone3.c b/sysdeps/unix/sysv/linux/tst-clone3.c index 400eb89..613cb4a 100644 --- a/sysdeps/unix/sysv/linux/tst-clone3.c +++ b/sysdeps/unix/sysv/linux/tst-clone3.c @@ -56,7 +56,11 @@ f (void *a) static inline int futex_wait (int *futexp, int val) { +#ifdef __NR_futex return syscall (__NR_futex, futexp, FUTEX_WAIT, val); +#else + return syscall (__NR_futex_time64, futexp, FUTEX_WAIT, val); +#endif } static int