public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1041] c++tools: Include <cstdlib> for exit [PR100731]
@ 2021-05-25 14:45 Jakub Jelinek
  0 siblings, 0 replies; only message in thread
From: Jakub Jelinek @ 2021-05-25 14:45 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:7a5e9a58fbe27d8b8f04cd18bc6e1dd736e3cd12

commit r12-1041-g7a5e9a58fbe27d8b8f04cd18bc6e1dd736e3cd12
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Tue May 25 16:44:35 2021 +0200

    c++tools: Include <cstdlib> for exit [PR100731]
    
    This TU uses exit, but doesn't include <stdlib.h> or <cstdlib> and relies
    on some other header to include it indirectly, which apparently doesn't
    happen on reporter's host.
    
    The other <c*> headers aren't guarded either and we rely on a compiler
    capable of C++11, so maybe we can rely on <cstdlib> being around
    unconditionally.
    
    2021-05-25  Jakub Jelinek  <jakub@redhat.com>
    
            PR bootstrap/100731
            * server.cc: Include <cstdlib>.

Diff:
---
 c++tools/server.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/c++tools/server.cc b/c++tools/server.cc
index 709955e7e2b..fae3e78dc5d 100644
--- a/c++tools/server.cc
+++ b/c++tools/server.cc
@@ -29,6 +29,7 @@ along with GCC; see the file COPYING3.  If not see
 #include <csignal>
 #include <cstring>
 #include <cstdarg>
+#include <cstdlib>
 // OS
 #include <unistd.h>
 #include <sys/types.h>


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-25 14:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-25 14:45 [gcc r12-1041] c++tools: Include <cstdlib> for exit [PR100731] Jakub Jelinek

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).