diff --git a/libcxxabi/test/forced_unwind4.pass.cpp b/libcxxabi/test/forced_unwind4.pass.cpp index 53a0121da92e41..0d22657f6cf2b4 100644 --- a/libcxxabi/test/forced_unwind4.pass.cpp +++ b/libcxxabi/test/forced_unwind4.pass.cpp @@ -13,6 +13,13 @@ // the child_thread. This test ensures sigretrun is handled correctly (see: // UnwindCursor::setInfoForSigReturn). +// Android/Bionic does not support pthread_cancel. +#ifdef __BIONIC__ +int main() { + return 0; +} +#else + #include #include #include @@ -48,3 +55,4 @@ int main() { pthread_join(child_thread, NULL); return 0; } +#endif