From 227351345d0caa596eff8325144f15b15f704c08 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 12 Jan 2023 13:03:01 +0000 Subject: libstdc++: Do not include in concurrency headers The , , and headers use std::errc constants, but don't use std::system_error itself. They only use the __throw_system_error(int) function, which is defined in . By including the header for the errc constants instead of the whole of we avoid depending on the whole std::string definition. libstdc++-v3/ChangeLog: * include/bits/std_mutex.h: Remove include. * include/std/condition_variable: Add include. * include/std/mutex: Likewise. * include/std/shared_mutex: Likewise. --- libstdc++-v3/include/std/mutex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libstdc++-v3/include/std/mutex') diff --git a/libstdc++-v3/include/std/mutex b/libstdc++-v3/include/std/mutex index aca5f91..4eedbe5 100644 --- a/libstdc++-v3/include/std/mutex +++ b/libstdc++-v3/include/std/mutex @@ -40,8 +40,8 @@ #include #include #include -#include #include +#include #include #include #if ! _GTHREAD_USE_MUTEX_TIMEDLOCK -- cgit v1.1