public inbox for libstdc++-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-8918] libstdc++: Add missing headers for errno and std::terminate Date: Tue, 24 Aug 2021 16:01:13 +0000 (GMT) [thread overview] Message-ID: <20210824160113.5AE15385843C@sourceware.org> (raw) https://gcc.gnu.org/g:60de2b5874021dc3d6bf66b607aac69319f69499 commit r11-8918-g60de2b5874021dc3d6bf66b607aac69319f69499 Author: Jonathan Wakely <jwakely@redhat.com> Date: Mon Apr 26 12:28:37 2021 +0100 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 a38b1a59f8eb6f41a885f8a7c8838378be717b02) Diff: --- libstdc++-v3/include/bits/semaphore_base.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/bits/semaphore_base.h b/libstdc++-v3/include/bits/semaphore_base.h index c970fd66a36..c4565d7e560 100644 --- 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>
reply other threads:[~2021-08-24 16:01 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210824160113.5AE15385843C@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).