aboutsummaryrefslogtreecommitdiff
path: root/c++tools
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2021-05-25 16:44:35 +0200
committerJakub Jelinek <jakub@redhat.com>2021-05-25 16:44:35 +0200
commit7a5e9a58fbe27d8b8f04cd18bc6e1dd736e3cd12 (patch)
tree3d0e7e34d854ae21bdb3a36ff0a4ba46ef7e7438 /c++tools
parent3b0a7d624e64eeb81e4d5e8c62c46d86ef521857 (diff)
downloadgcc-7a5e9a58fbe27d8b8f04cd18bc6e1dd736e3cd12.zip
gcc-7a5e9a58fbe27d8b8f04cd18bc6e1dd736e3cd12.tar.gz
gcc-7a5e9a58fbe27d8b8f04cd18bc6e1dd736e3cd12.tar.bz2
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>.
Diffstat (limited to 'c++tools')
-rw-r--r--c++tools/server.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/c++tools/server.cc b/c++tools/server.cc
index 709955e..fae3e78 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>