This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH OBV 09/10] Include serial.h in ser-base.h.
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 6 Jan 2017 14:18:59 +0000
- Subject: [PATCH OBV 09/10] Include serial.h in ser-base.h.
- Authentication-results: sourceware.org; auth=none
- References: <1483712340-9157-1-git-send-email-yao.qi@linaro.org>
$ make check-headers CHECK_HEADERS="ser-base.h"
...
../../binutils-gdb/gdb/ser-base.h:33:8: error: 'serial_ttystate' does not name a type
extern serial_ttystate ser_base_get_tty_state (struct serial *scb);
^
gdb:
2017-01-06 Yao Qi <yao.qi@linaro.org>
* ser-base.h: Include serial.h.
---
gdb/ser-base.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gdb/ser-base.h b/gdb/ser-base.h
index 06f9895..964d640 100644
--- a/gdb/ser-base.h
+++ b/gdb/ser-base.h
@@ -20,6 +20,8 @@
#ifndef SER_BASE_H
#define SER_BASE_H
+#include "serial.h" /* For serial_ttystate. */
+
struct serial;
struct ui_file;
--
1.9.1