mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
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.
This commit is contained in:
@ -46,9 +46,7 @@ tf (void *arg)
|
|||||||
|
|
||||||
/* Wait indefinitely for cancellation, which only works if asynchronous
|
/* Wait indefinitely for cancellation, which only works if asynchronous
|
||||||
cancellation is enabled. */
|
cancellation is enabled. */
|
||||||
#ifdef SYS_pause
|
#if defined SYS_ppoll || defined SYS_ppoll_time64
|
||||||
syscall (SYS_pause);
|
|
||||||
#elif defined SYS_ppoll || defined SYS_ppoll_time64
|
|
||||||
# ifndef SYS_ppoll_time64
|
# ifndef SYS_ppoll_time64
|
||||||
# define SYS_ppoll_time64 SYS_ppoll
|
# define SYS_ppoll_time64 SYS_ppoll
|
||||||
# endif
|
# endif
|
||||||
|
Reference in New Issue
Block a user