aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2019-09-24 10:08:59 +0100
committerNick Clifton <nickc@redhat.com>2019-09-24 10:08:59 +0100
commit46b3cd9e39a5df287bd95b5b80d5947cc96e9455 (patch)
tree815be9fd31e3932861645e9864c52f48a3644bde
parentAutomatic date update in version.in (diff)
downloadbinutils-gdb-46b3cd9e39a5df287bd95b5b80d5947cc96e9455.tar.gz
binutils-gdb-46b3cd9e39a5df287bd95b5b80d5947cc96e9455.tar.bz2
binutils-gdb-46b3cd9e39a5df287bd95b5b80d5947cc96e9455.zip
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 d49a37ce87a..3566b9018eb 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 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"