From: Max Kellermann Date: Tue, 29 Oct 2024 20:20:31 +0000 (+0100) Subject: common/fair_mutex: include only with CEPH_DEBUG_MUTEX X-Git-Tag: v20.3.0~375^2~11 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=04e285e253e70d56d11124f12c307c025e0ef2bb;p=ceph.git 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 --- 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 {