[binutils-gdb/binutils-2_33-branch] Fix building gold with gcc-10.

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


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

commit 46b3cd9e39a5df287bd95b5b80d5947cc96e9455
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue Sep 24 10:08:59 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 d49a37c..3566b90 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-20  Alan Modra  <amodra@gmail.com>
 
 	PR 24768
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