summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-09-24 10:07:56 +0100
committerNick Clifton <nickc@redhat.com>2019-09-24 10:07:56 +0100
commit5d33705c7befb0711c134089cc8fffdbf9bc031c (patch)
treeba7e800a7ba25b130378a79e2789685994ddd0e9
parent3868d2e9f18d0351c472c0d6c8864c610e62598a (diff)
downloadbinutils-gdb-5d33705c7befb0711c134089cc8fffdbf9bc031c.tar.gz
Fix building gold with gcc-10.
* descriptors.cc: Include <string>
-rw-r--r--gold/ChangeLog4
-rw-r--r--gold/descriptors.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/gold/ChangeLog b/gold/ChangeLog
index 53ee2b9baa0..964b7d76045 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 92fd42f41f6..d5cc9fc4c95 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"