libstdc++: Include <mutex> in syncbuf.cc [PR122698]

For most configurations bits/std_mutex.h would already be included by
<syncstream>, but not if configured with _GLIBCXX_USE_CXX11_ABI=0 as the
default, because syncbuf is disabled in that case.

libstdc++-v3/ChangeLog:

	PR libstdc++/122698
	* src/c++20/syncbuf.cc (__syncbuf_get_mutex): Include <mutex>.
	Fix indentation of function body.
This commit is contained in:
Jonathan Wakely 2025-11-16 13:57:25 +00:00 committed by Jonathan Wakely
parent d9a19e6805
commit 84dbb22f32
No known key found for this signature in database
1 changed files with 7 additions and 6 deletions

View File

@ -23,6 +23,7 @@
// <http://www.gnu.org/licenses/>. // <http://www.gnu.org/licenses/>.
#include <syncstream> #include <syncstream>
#include <mutex>
#include <bits/functional_hash.h> #include <bits/functional_hash.h>
#if _GLIBCXX_HAS_GTHREADS #if _GLIBCXX_HAS_GTHREADS