summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Platings <michael.platings@arm.com>2021-06-09 21:17:57 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-06-09 21:17:57 +0000
commitcc54d97adbd93e314e730a9f6e279a66d2dfb0c9 (patch)
tree6bf2745f37bc024d75392be2240433724edf8b4a
parentdde880b5d29dd20ff601c58f3a67b95332e2469d (diff)
parent19a20b22605fd40577e2c9e04c8c666d7865146c (diff)
downloadlibcxxabi-cc54d97adbd93e314e730a9f6e279a66d2dfb0c9.tar.gz
Fix compilation error with -DLIBCXXABI_ENABLE_THREADS=OFF am: f22e6f75eb am: c23177e65e am: 36169abc78 am: 19a20b2260
Original change: https://android-review.googlesource.com/c/platform/external/libcxxabi/+/1727414 Change-Id: Ifb82f4de8f412c520f9599790f2c013def207a96
-rw-r--r--src/cxa_guard_impl.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cxa_guard_impl.h b/src/cxa_guard_impl.h
index ea82d20..412099e 100644
--- a/src/cxa_guard_impl.h
+++ b/src/cxa_guard_impl.h
@@ -257,6 +257,9 @@ struct LibcppCondVar {
private:
std::__libcpp_condvar_t cond = _LIBCPP_CONDVAR_INITIALIZER;
};
+#else
+struct LibcppMutex {};
+struct LibcppCondVar {};
#endif // !defined(_LIBCXXABI_HAS_NO_THREADS)