--- a/Source/Tests/LinuxSyscalls/x32/Semaphore.cpp +++ b/Source/Tests/LinuxSyscalls/x32/Semaphore.cpp @@ -19,7 +19,7 @@ #include #include #include -#include +#include #include #include #include @@ -90,6 +90,7 @@ uint64_t Result{}; switch (static_cast(call)) { +#if !defined(__ANDROID__) || __ANDROID_API__ >= 26 case OP_SEMOP: { Result = ::semop(first, reinterpret_cast(ptr), second); break; @@ -280,6 +281,7 @@ } break; } +#endif case OP_SHMAT: { Result = static_cast(FEX::HLE::_SyscallHandler)->GetAllocator()-> shmat(first, reinterpret_cast(ptr), second, reinterpret_cast(third)); @@ -377,6 +379,7 @@ void RegisterSemaphore() { REGISTER_SYSCALL_IMPL_X32(ipc, _ipc); +#if !defined(__ANDROID__) || __ANDROID_API__ >= 26 REGISTER_SYSCALL_IMPL_X32_PASS_MANUAL(semtimedop_time64, semtimedop, [](FEXCore::Core::CpuStateFrame *Frame, int semid, struct sembuf *sops, size_t nsops, const struct timespec *timeout) -> uint64_t { uint64_t Result = ::semtimedop(semid, sops, nsops, timeout); SYSCALL_ERRNO(); @@ -454,6 +457,7 @@ } SYSCALL_ERRNO(); }); +#endif } }