summaryrefslogtreecommitdiff
path: root/gpsd.h
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2006-12-01 22:31:08 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2006-12-01 22:31:08 +0000
commitdb4056cb05b78df2f07a895d3f3965dff36c2da8 (patch)
treeb0f012cb6f6a255add0ab650d51db8f6b9dcb0f9 /gpsd.h
parent91be68129c2163fa521ae9ea9179f96a7bf750dc (diff)
downloadgpsd-db4056cb05b78df2f07a895d3f3965dff36c2da8.tar.gz
Move some includes around and protect them properly.
Diffstat (limited to 'gpsd.h')
-rw-r--r--gpsd.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/gpsd.h b/gpsd.h
index 66944f8e..7df0105a 100644
--- a/gpsd.h
+++ b/gpsd.h
@@ -6,7 +6,12 @@
#include <stdbool.h>
#include <stdio.h>
+#ifdef HAVE_TERMIOS_H
#include <termios.h>
+#endif
+#ifdef HAVE_SYS_TERMIOS_H
+#include <sys/termios.h>
+#endif
#include "gps.h"
/* Some internal capabilities depend on which drivers we're compiling. */
@@ -97,14 +102,6 @@ struct gps_type_t {
double cycle;
};
-#if defined (HAVE_SYS_TERMIOS_H)
-#include <sys/termios.h>
-#else
-#if defined (HAVE_TERMIOS_H)
-#include <termios.h>
-#endif
-#endif
-
/*
* The packet buffers need to be as long than the longest packet we
* expect to see in any protocol, because we have to be able to hold