]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Include <stdint.h> in <bits/atomic_wait.h>
authorJonathan Wakely <jwakely@redhat.com>
Sun, 26 Nov 2023 21:31:05 +0000 (21:31 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 28 Nov 2023 16:59:23 +0000 (16:59 +0000)
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>.

libstdc++-v3/ChangeLog:

* include/bits/atomic_wait.h: Include <stdint.h>.

(cherry picked from commit 6c8f2d3a08bc013ddb31f7fccd7136751a1460ed)

libstdc++-v3/include/bits/atomic_wait.h

index 67c0e3bf56b7d24888b4e2008130cdedabb792c3..aaf36832ea3b5e81ec65af0a16901772ce4ad909 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <bits/c++config.h>
 #if defined _GLIBCXX_HAS_GTHREADS || defined _GLIBCXX_HAVE_LINUX_FUTEX
+#include <stdint.h>
 #include <bits/functional_hash.h>
 #include <bits/gthr.h>
 #include <ext/numeric_traits.h>