This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH v2 3/7] gdbserver: include hostio.h in hostio-errno.c
- From: Simon Marchi <simon dot marchi at efficios dot com>
- To: gdb-patches at sourceware dot org
- Cc: Simon Marchi <simon dot marchi at efficios dot com>
- Date: Fri, 10 Jan 2020 17:00:23 -0500
- Subject: [PATCH v2 3/7] gdbserver: include hostio.h in hostio-errno.c
- Dkim-filter: OpenDKIM Filter v2.10.3 mail.efficios.com F13AB6960D0
- References: <20200110220027.26450-1-simon.marchi@efficios.com>
... 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
---
gdb/gdbserver/hostio-errno.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gdb/gdbserver/hostio-errno.c b/gdb/gdbserver/hostio-errno.c
index a4c25e04a604..b75e64d212e7 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
--
2.24.1