libstdc++: Add missing headers for errno and std::terminate

libstdc++-v3/ChangeLog:

	* include/bits/semaphore_base.h: Include <exception> and <errno.h>.

(cherry picked from commit a38b1a59f8)
This commit is contained in:
Jonathan Wakely 2021-04-26 12:28:37 +01:00
parent 88caed8772
commit 60de2b5874

View File

@ -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>