summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/posix/HostThreadPosix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Host/posix/HostThreadPosix.cpp')
-rw-r--r--lldb/source/Host/posix/HostThreadPosix.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/source/Host/posix/HostThreadPosix.cpp b/lldb/source/Host/posix/HostThreadPosix.cpp
index 4cf0c34a267..6b1b88bb05d 100644
--- a/lldb/source/Host/posix/HostThreadPosix.cpp
+++ b/lldb/source/Host/posix/HostThreadPosix.cpp
@@ -50,8 +50,12 @@ Error
HostThreadPosix::Cancel()
{
Error error;
+#ifndef __ANDROID__
int err = ::pthread_cancel(m_thread);
error.SetError(err, eErrorTypePOSIX);
+#else
+ error.SetErrorString("HostThreadPosix::Cancel() not supported on Android");
+#endif
return error;
}
OpenPOWER on IntegriCloud