Include serial.h in ser-base.h.
authorYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:33:01 +0000 (14:33 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 6 Jan 2017 14:33:01 +0000 (14:33 +0000)
$ 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/ChangeLog
gdb/ser-base.h

index 39c5c7c2ae32398468330674d2a874b80316720e..80deeb4201e4e306b23c9010f40e54db4831558a 100644 (file)
@@ -1,3 +1,7 @@
+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.
index 06f989541a11025a2e78d8f25bfaef0548fc1782..964d640587af5bbbc8b241f7955d90a2db052645 100644 (file)
@@ -20,6 +20,8 @@
 #ifndef SER_BASE_H
 #define SER_BASE_H
 
+#include "serial.h"  /* For serial_ttystate.  */
+
 struct serial;
 struct ui_file;
 
This page took 0.031331 seconds and 4 git commands to generate.