This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Include serial.h in ser-base.h.
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 6 Jan 2017 14:34:24 -0000
- Subject: [binutils-gdb] Include serial.h in ser-base.h.
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=44d6d3f93341387bd2c95ea4c941bf99127e7389
commit 44d6d3f93341387bd2c95ea4c941bf99127e7389
Author: Yao Qi <yao.qi@linaro.org>
Date: Fri Jan 6 14:33:01 2017 +0000
Include serial.h in ser-base.h.
$ 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.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/ser-base.h | 2 ++
2 files changed, 6 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 39c5c7c..80deeb4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-01-06 Yao Qi <yao.qi@linaro.org>
+ * ser-base.h: Include serial.h.
+
+2017-01-06 Yao Qi <yao.qi@linaro.org>
+
* ppc-linux-tdep.h: Include ppc-tdep.h.
2017-01-06 Yao Qi <yao.qi@linaro.org>
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;