From 1e273437b13f3df76eb16f76f17a7397c3bdaa69 Mon Sep 17 00:00:00 2001 From: Chris Kuethe Date: Wed, 8 Dec 2010 20:09:32 -0800 Subject: more header fixin' sys/types.h is required for lots of things sys/stat.h is required for umask put all the sys/* headers first, then the network headers, the everything else --- lcdgps.c | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'lcdgps.c') diff --git a/lcdgps.c b/lcdgps.c index 8a598789..0fbdd4e8 100644 --- a/lcdgps.c +++ b/lcdgps.c @@ -34,16 +34,11 @@ #define CLIMB 3 -#include #include "gpsd_config.h" -#include -#ifndef S_SPLINT_S -#include -#endif /* S_SPLINT_S */ -#include -#include + +#include +#include #ifdef HAVE_SYS_SELECT_H - #include #include #endif /* HAVE_SYS_SELECT_H */ #ifndef S_SPLINT_S @@ -51,12 +46,6 @@ #include #endif /* HAVE_SYS_SOCKET_H */ #endif /* S_SPLINT_S */ - -#include -#ifdef HAVE_TERMIOS_H - #include -#endif /* HAVE_TERMIOS_H */ - #ifndef S_SPLINT_S #ifdef HAVE_NETINET_IN_H #include @@ -68,8 +57,21 @@ #include #endif /* HAVE_NETDB_H */ #endif /* S_SPLINT_S */ + +#include +#include +#ifndef S_SPLINT_S + #include +#endif /* S_SPLINT_S */ +#include #include +#include +#ifdef HAVE_TERMIOS_H + #include +#endif /* HAVE_TERMIOS_H */ + +#include #include "gps.h" #include "gpsdclient.h" -- cgit v1.2.1