diff options
author | Chris Kuethe <chris.kuethe@gmail.com> | 2006-12-01 22:31:08 +0000 |
---|---|---|
committer | Chris Kuethe <chris.kuethe@gmail.com> | 2006-12-01 22:31:08 +0000 |
commit | db4056cb05b78df2f07a895d3f3965dff36c2da8 (patch) | |
tree | b0f012cb6f6a255add0ab650d51db8f6b9dcb0f9 /gpsd.h | |
parent | 91be68129c2163fa521ae9ea9179f96a7bf750dc (diff) | |
download | gpsd-db4056cb05b78df2f07a895d3f3965dff36c2da8.tar.gz |
Move some includes around and protect them properly.
Diffstat (limited to 'gpsd.h')
-rw-r--r-- | gpsd.h | 13 |
1 files changed, 5 insertions, 8 deletions
@@ -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 |