libstdc++-v3/ChangeLog: * include/precompiled/stdc++.h: Add new headers. * include/std/stop_token: Include <semaphore> unconditionally.
Tested powerpc64le-linux. Committed to trunk.
commit 127aa17e162384034254e93cd1ae37224c0ce197 Author: Jonathan Wakely <jwak...@redhat.com> Date: Thu Nov 26 11:25:55 2020 libstdc++: Add new headers to stdc++.h libstdc++-v3/ChangeLog: * include/precompiled/stdc++.h: Add new headers. * include/std/stop_token: Include <semaphore> unconditionally. diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h index a418c46288de..692fae76a42f 100644 --- a/libstdc++-v3/include/precompiled/stdc++.h +++ b/libstdc++-v3/include/precompiled/stdc++.h @@ -140,10 +140,12 @@ #if __cpp_impl_coroutine # include <coroutine> #endif +#include <latch> #include <numbers> #include <ranges> #include <span> #include <stop_token> +#include <semaphore> #include <syncstream> #include <version> #endif diff --git a/libstdc++-v3/include/std/stop_token b/libstdc++-v3/include/std/stop_token index 5b2d5a0427c7..316342805702 100644 --- a/libstdc++-v3/include/std/stop_token +++ b/libstdc++-v3/include/std/stop_token @@ -34,9 +34,7 @@ #include <atomic> #include <bits/std_thread.h> -#if __has_include(<semaphore>) -# include <semaphore> -#endif +#include <semaphore> #define __cpp_lib_jthread 201911L