diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-04-03 14:18:14 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2023-07-10 15:56:51 -0300 |
commit | 260d4b742bc36744aa2282421547f1a7b483d2f8 (patch) | |
tree | d9846ba2e1a7ef4e14999bc5d63ff3d257b452ad | |
parent | 3f4b4e2cdd529266ea5a2c6c5e0c66bab81bfd0e (diff) | |
download | glibc-260d4b742bc36744aa2282421547f1a7b483d2f8.tar.gz glibc-260d4b742bc36744aa2282421547f1a7b483d2f8.tar.xz glibc-260d4b742bc36744aa2282421547f1a7b483d2f8.zip |
nptl: Fix tst-cancel30 on sparc64
As indicated by sparc kernel-features.h, even though sparc64 defines __NR_pause, it is not supported (ENOSYS). Always use ppoll or the 64 bit time_t variant instead. (cherry picked from commit 370da8a121c3ba9eeb2f13da15fc0f21f4136b25)
-rw-r--r-- | sysdeps/pthread/tst-cancel30.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sysdeps/pthread/tst-cancel30.c b/sysdeps/pthread/tst-cancel30.c index 6eb4eb5b42..ff803386be 100644 --- a/sysdeps/pthread/tst-cancel30.c +++ b/sysdeps/pthread/tst-cancel30.c @@ -46,9 +46,7 @@ tf (void *arg) /* Wait indefinitely for cancellation, which only works if asynchronous cancellation is enabled. */ -#ifdef SYS_pause - syscall (SYS_pause); -#elif defined SYS_ppoll || defined SYS_ppoll_time64 +#if defined SYS_ppoll || defined SYS_ppoll_time64 # ifndef SYS_ppoll_time64 # define SYS_ppoll_time64 SYS_ppoll # endif |