]> 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 12:43:15 +0000 (12:43 +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>.

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

index 506b7f0cc9dc670b8eac77ed72544247f6f75e16..1460b1d8d5cd3b0c64708524c63fdef62076be8f 100644 (file)
@@ -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>