Index: source/Host/posix/HostThreadPosix.cpp =================================================================== --- source/Host/posix/HostThreadPosix.cpp +++ source/Host/posix/HostThreadPosix.cpp @@ -44,9 +44,10 @@ #ifndef __ANDROID__ #ifndef __FreeBSD__ llvm_unreachable("someone is calling HostThread::Cancel()"); -#endif +#else int err = ::pthread_cancel(m_thread); error.SetError(err, eErrorTypePOSIX); +#endif #else error.SetErrorString("HostThreadPosix::Cancel() not supported on Android"); #endif