projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9046be
)
libstdc++: Add missing headers for errno and std::terminate
author
Jonathan Wakely
<jwakely@redhat.com>
Mon, 26 Apr 2021 11:28:37 +0000
(12:28 +0100)
committer
Jonathan Wakely
<jwakely@redhat.com>
Mon, 26 Apr 2021 11:30:26 +0000
(12:30 +0100)
libstdc++-v3/ChangeLog:
* include/bits/semaphore_base.h: Include <exception> and <errno.h>.
libstdc++-v3/include/bits/semaphore_base.h
patch
|
blob
|
history
diff --git
a/libstdc++-v3/include/bits/semaphore_base.h
b/libstdc++-v3/include/bits/semaphore_base.h
index
4948f0f
..
9a55978
100644
(file)
--- a/
libstdc++-v3/include/bits/semaphore_base.h
+++ b/
libstdc++-v3/include/bits/semaphore_base.h
@@
-39,8
+39,10
@@
#endif // __cpp_lib_atomic_wait
#ifdef _GLIBCXX_HAVE_POSIX_SEMAPHORE
-# include <limits.h>
-# include <semaphore.h>
+# include <exception> // std::terminate
+# include <cerrno> // errno, EINTR, EAGAIN etc.
+# include <limits.h> // SEM_VALUE_MAX
+# include <semaphore.h> // sem_t, sem_init, sem_wait, sem_post etc.
#endif
#include <chrono>