[binutils-gdb] Fix building gold with gcc-10.

Nick Clifton nickc@sourceware.org
Tue Sep 24 09:08:00 GMT 2019


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5d33705c7befb0711c134089cc8fffdbf9bc031c

commit 5d33705c7befb0711c134089cc8fffdbf9bc031c
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Sep 24 10:07:56 2019 +0100

    Fix building gold with gcc-10.
    
       * descriptors.cc: Include <string>

Diff:
---
 gold/ChangeLog      | 4 ++++
 gold/descriptors.cc | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index 53ee2b9..964b7d7 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,7 @@
+2019-09-24  Nick Clifton  <nickc@redhat.com>
+
+	* descriptors.cc: Include <string>
+
 2019-09-23  Alan Modra  <amodra@gmail.com>
 
 	* testsuite/plugin_new_section_layout.c (new_input_hook): Correct
diff --git a/gold/descriptors.cc b/gold/descriptors.cc
index 92fd42f..d5cc9fc 100644
--- a/gold/descriptors.cc
+++ b/gold/descriptors.cc
@@ -26,6 +26,7 @@
 #include <cstdio>
 #include <cstring>
 #include <fcntl.h>
+#include <string>
 #include <unistd.h>
 
 #include "debug.h"



More information about the Binutils-cvs mailing list