summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Platings <michael.platings@arm.com>2021-06-09 20:59:11 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-06-09 20:59:11 +0000
commit19a20b22605fd40577e2c9e04c8c666d7865146c (patch)
tree6bf2745f37bc024d75392be2240433724edf8b4a
parent7be8fdb50c3e36daac46add51be848bf75a3b572 (diff)
parent36169abc786665ac8e2ce9045238f4d5005369db (diff)
downloadlibcxxabi-19a20b22605fd40577e2c9e04c8c666d7865146c.tar.gz
Fix compilation error with -DLIBCXXABI_ENABLE_THREADS=OFF am: f22e6f75eb am: c23177e65e am: 36169abc78
Original change: https://android-review.googlesource.com/c/platform/external/libcxxabi/+/1727414 Change-Id: I574a03f277345899ba353ecbda09157e5f123209
-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)