From 04e285e253e70d56d11124f12c307c025e0ef2bb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Oct 2024 21:20:31 +0100 Subject: [PATCH] common/fair_mutex: include only with CEPH_DEBUG_MUTEX The header is only needed for std::this_thread::get_id() which is in the `#ifdef CEPH_DEBUG_MUTEX` section. Signed-off-by: Max Kellermann --- src/common/fair_mutex.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/common/fair_mutex.h b/src/common/fair_mutex.h index 9baa04400489..3bf3b9b4aa29 100644 --- a/src/common/fair_mutex.h +++ b/src/common/fair_mutex.h @@ -4,7 +4,10 @@ #include "common/ceph_mutex.h" -#include +#ifdef CEPH_DEBUG_MUTEX +#include // for std::this_thread::get_id() +#endif + #include namespace ceph { -- 2.47.3