summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Platings <michael.platings@arm.com>2021-06-09 20:22:35 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2021-06-09 20:22:35 +0000
commitc23177e65e9d7b5e94e0ba41a0618bbe6fcdc058 (patch)
tree6bf2745f37bc024d75392be2240433724edf8b4a
parente205f7693a7f1742e5724e29290bf4a0d80532b8 (diff)
parentf22e6f75ebd88024c17ba79457c13e98a17c00b3 (diff)
downloadlibcxxabi-c23177e65e9d7b5e94e0ba41a0618bbe6fcdc058.tar.gz
Fix compilation error with -DLIBCXXABI_ENABLE_THREADS=OFF am: f22e6f75eb
Original change: https://android-review.googlesource.com/c/platform/external/libcxxabi/+/1727414 Change-Id: Icf807c38c74d3ac4019b9bbc40511f4c00e794b2
-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)