[committed] libstdc++: Include <stdint.h> in <bits/atomic_wait.h>

Message ID 20231128124429.2774070-1-jwakely@redhat.com
State Committed
Commit 6c8f2d3a08bc013ddb31f7fccd7136751a1460ed
Series [committed] libstdc++: Include <stdint.h> in <bits/atomic_wait.h> |


Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm warning Patch is already merged
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 warning Patch is already merged

Commit Message

Jonathan Wakely Nov. 28, 2023, 12:44 p.m. UTC
  Tested x86_64-linux. Pushed to trunk. Backports to follow.

-- >8 --

This is needed in order to compile it as a header-unit, which might be
desired because it's included by both <atomic> and <semaphore>.


	* include/bits/atomic_wait.h: Include <stdint.h>.
 libstdc++-v3/include/bits/atomic_wait.h | 1 +
 1 file changed, 1 insertion(+)


diff --git a/libstdc++-v3/include/bits/atomic_wait.h b/libstdc++-v3/include/bits/atomic_wait.h
index 506b7f0cc9d..1460b1d8d5c 100644
--- a/libstdc++-v3/include/bits/atomic_wait.h
+++ b/libstdc++-v3/include/bits/atomic_wait.h
@@ -35,6 +35,7 @@ 
 #include <bits/version.h>
 #if __glibcxx_atomic_wait
+#include <stdint.h>
 #include <bits/functional_hash.h>
 #include <bits/gthr.h>
 #include <ext/numeric_traits.h>