diff options
author | Ryan Prichard <rprichard@google.com> | 2022-12-09 15:14:04 -0800 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2022-12-09 15:16:20 -0800 |
commit | f8c2b0d249afc58db87c6678e0db4c0a53774d2d (patch) | |
tree | 54977a580318ba17c4aaf3ecb0353a7d7bc58970 /libcxxabi | |
parent | 34a3259fab86aaa1a20224e08849775f3593e6a3 (diff) | |
download | llvm-f8c2b0d249afc58db87c6678e0db4c0a53774d2d.tar.gz |
[libc++][Android] Include cstdlib to define __BIONIC__
__ANDROID__ is a built-in compiler macro, but __BIONIC__ is defined by
the libc header.
Reviewed By: #libc_abi, compnerd
Differential Revision: https://reviews.llvm.org/D137128
Diffstat (limited to 'libcxxabi')
-rw-r--r-- | libcxxabi/test/forced_unwind4.pass.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcxxabi/test/forced_unwind4.pass.cpp b/libcxxabi/test/forced_unwind4.pass.cpp index 0d22657f6cf2..2864426ca16d 100644 --- a/libcxxabi/test/forced_unwind4.pass.cpp +++ b/libcxxabi/test/forced_unwind4.pass.cpp @@ -13,6 +13,8 @@ // the child_thread. This test ensures sigretrun is handled correctly (see: // UnwindCursor<A, R>::setInfoForSigReturn). +#include <cstdlib> // defines __BIONIC__ + // Android/Bionic does not support pthread_cancel. #ifdef __BIONIC__ int main() { |