This is an automated email from the ASF dual-hosted git repository.

924060929 pushed a commit to branch fe_local_shuffle
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/fe_local_shuffle by this push:
     new 3eda403dd6e [fix](build) Add missing <mutex> include in multi_version.h
3eda403dd6e is described below

commit 3eda403dd6e47b11a0d7fd6b6123a399866bdb0e
Author: 924060929 <[email protected]>
AuthorDate: Wed May 13 09:25:29 2026 +0800

    [fix](build) Add missing <mutex> include in multi_version.h
    
    std::unique_lock lives in <mutex>, not <shared_mutex>.  libc++ (macOS)
    transitively pulls it in via <shared_mutex>, so the local build passed;
    libstdc++ on the Linux RQG compile is stricter and fails:
    
      error: no member named 'unique_lock' in namespace 'std'
    
    Add the explicit include to keep both toolchains happy.
---
 be/src/common/multi_version.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/be/src/common/multi_version.h b/be/src/common/multi_version.h
index c3858da779f..b1c82313ea5 100644
--- a/be/src/common/multi_version.h
+++ b/be/src/common/multi_version.h
@@ -21,6 +21,7 @@
 #pragma once
 
 #include <memory>
+#include <mutex>
 #include <shared_mutex>
 
 /** Allow to store and read-only usage of an object in several threads,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to