From: Adhemerval Zanella Date: Mon, 3 Apr 2023 17:18:14 +0000 (-0300) Subject: nptl: Fix tst-cancel30 on sparc64 X-Git-Tag: glibc-2.38~424 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=370da8a121c3ba9eeb2f13da15fc0f21f4136b25;p=thirdparty%2Fglibc.git 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. --- diff --git a/sysdeps/pthread/tst-cancel30.c b/sysdeps/pthread/tst-cancel30.c index 6eb4eb5b42b..ff803386be4 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