summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
authorRobert Norris <rw_norris@hotmail.com>2017-12-24 12:20:51 +0000
committerGary E. Miller <gem@rellim.com>2018-06-17 14:00:28 -0700
commit79f3beef99a8f97e579b988bd8396d3ceaac99ed (patch)
treee4ceaa5c1088e65afb853d5adf4bfd609f9cd089 /gpspipe.c
parent851cc68d8d5194d4f5ff799aafedefbb7de76492 (diff)
downloadgpsd-79f3beef99a8f97e579b988bd8396d3ceaac99ed.tar.gz
Improved Windows build of gpspipe
Add missing ifdef for HAVE_TERMIOS_H. Signed-off-by: Gary E. Miller <gem@rellim.com>
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 26718aa4..9c2e2438 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -67,7 +67,9 @@ static void spinner(unsigned int, unsigned int);
#define BAUDRATE B4800
/* Serial port variables */
+#ifdef HAVE_TERMIOS_H
static struct termios oldtio, newtio;
+#endif /* HAVE_TERMIOS_H */
static int fd_out = 1; /* output initially goes to standard output */
static char serbuf[255];
static int debug;