aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2020-01-13 14:03:13 -0500
committerSimon Marchi <simon.marchi@efficios.com>2020-01-13 14:03:13 -0500
commit2552728af832542a1760c0ea8e9107635188eba2 (patch)
treee2fe257b32e77cf460eb7e30cdfcff480b6746af
parent6b3661116e7b01676299710a96f47fe06bafacec (diff)
downloadbinutils-2552728af832542a1760c0ea8e9107635188eba2.zip
binutils-2552728af832542a1760c0ea8e9107635188eba2.tar.gz
binutils-2552728af832542a1760c0ea8e9107635188eba2.tar.bz2
gdbserver: include hostio.h in hostio-errno.c
... so that the definition of hostio_last_error_from_errno in hostio-errno.c sees the declaration in hostio.h. Fix this error: CXX hostio-errno.o /home/smarchi/src/binutils-gdb/gdb/gdbserver/hostio-errno.c: In function ‘void hostio_last_error_from_errno(char*)’: /home/smarchi/src/binutils-gdb/gdb/gdbserver/hostio-errno.c:28:1: error: no previous declaration for ‘void hostio_last_error_from_errno(char*)’ [-Werror=missing-declarations] hostio_last_error_from_errno (char *buf) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ gdb/gdbserver/ChangeLog: * hostio-errno.c: Include hostio.h. Change-Id: I056308fd4ce12810d0a1b826c423bd0c7eeb8944
-rw-r--r--gdb/gdbserver/ChangeLog4
-rw-r--r--gdb/gdbserver/hostio-errno.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 730c53a..ad176c7 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,9 @@
2020-01-13 Simon Marchi <simon.marchi@efficios.com>
+ * hostio-errno.c: Include hostio.h.
+
+2020-01-13 Simon Marchi <simon.marchi@efficios.com>
+
* Makefile.in (%-generated.c): Make $(regdat_sh) a regular
prerequisite.
diff --git a/gdb/gdbserver/hostio-errno.c b/gdb/gdbserver/hostio-errno.c
index a4c25e0..b75e64d 100644
--- a/gdb/gdbserver/hostio-errno.c
+++ b/gdb/gdbserver/hostio-errno.c
@@ -22,6 +22,9 @@
on top of errno. */
#include "server.h"
+
+#include "hostio.h"
+
#include "gdbsupport/fileio.h"
void