android: atomic: do not test SYS_futex_waitv syscall

This commit is contained in:
DH 2025-02-28 21:25:06 +03:00 committed by Megamouse
parent cac068dad9
commit 919cb8e05c

View file

@ -33,10 +33,12 @@ static bool has_waitv()
{
static const bool s_has_waitv = []
{
#ifndef ANDROID
// FIXME: it produces SIGSYS signal
syscall(SYS_futex_waitv, 0, 0, 0, 0, 0);
if (errno == ENOSYS)
return false;
return true;
return errno != ENOSYS;
#endif
return false;
}();
return s_has_waitv;