gdbserver: include hostio.h in hostio-errno.c
authorSimon Marchi <simon.marchi@efficios.com>
Mon, 13 Jan 2020 19:03:13 +0000 (14:03 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 13 Jan 2020 19:03:13 +0000 (14:03 -0500)
... 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/ChangeLog
gdb/gdbserver/hostio-errno.c

index 730c53a2e830a61c6d5b4d3d2da913d6776c8bc7..ad176c7add077cc0d5b1f71050fb802f41db0e84 100644 (file)
@@ -1,3 +1,7 @@
+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
index a4c25e04a60456ebef497ba16602c33573444a18..b75e64d212e78c29307b84f25dc19fa7630c655b 100644 (file)
@@ -22,6 +22,9 @@
    on top of errno.  */
 
 #include "server.h"
+
+#include "hostio.h"
+
 #include "gdbsupport/fileio.h"
 
 void
This page took 0.031716 seconds and 4 git commands to generate.