diff options
author | Chris Kuethe <ckuethe@users.berlios.de> | 2010-12-08 20:09:32 -0800 |
---|---|---|
committer | Chris Kuethe <ckuethe@users.berlios.de> | 2010-12-08 20:09:32 -0800 |
commit | 1e273437b13f3df76eb16f76f17a7397c3bdaa69 (patch) | |
tree | 17810d93613373f68f333f826ecfa63ae2fa334f /lcdgps.c | |
parent | 2ed3ccbf4d2e0e5718870be13eb50a12b071feb9 (diff) | |
download | gpsd-1e273437b13f3df76eb16f76f17a7397c3bdaa69.tar.gz |
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
Diffstat (limited to 'lcdgps.c')
-rw-r--r-- | lcdgps.c | 30 |
1 files changed, 16 insertions, 14 deletions
@@ -34,16 +34,11 @@ #define CLIMB 3 -#include <stdlib.h> #include "gpsd_config.h" -#include <string.h> -#ifndef S_SPLINT_S -#include <unistd.h> -#endif /* S_SPLINT_S */ -#include <math.h> -#include <errno.h> + +#include <sys/types.h> +#include <sys/stat.h> #ifdef HAVE_SYS_SELECT_H - #include <sys/types.h> #include <sys/select.h> #endif /* HAVE_SYS_SELECT_H */ #ifndef S_SPLINT_S @@ -51,12 +46,6 @@ #include <sys/socket.h> #endif /* HAVE_SYS_SOCKET_H */ #endif /* S_SPLINT_S */ - -#include <fcntl.h> -#ifdef HAVE_TERMIOS_H - #include <termios.h> -#endif /* HAVE_TERMIOS_H */ - #ifndef S_SPLINT_S #ifdef HAVE_NETINET_IN_H #include <netinet/in.h> @@ -68,8 +57,21 @@ #include <netdb.h> #endif /* HAVE_NETDB_H */ #endif /* S_SPLINT_S */ + +#include <stdlib.h> +#include <string.h> +#ifndef S_SPLINT_S + #include <unistd.h> +#endif /* S_SPLINT_S */ +#include <math.h> #include <errno.h> +#include <fcntl.h> +#ifdef HAVE_TERMIOS_H + #include <termios.h> +#endif /* HAVE_TERMIOS_H */ + +#include <errno.h> #include "gps.h" #include "gpsdclient.h" |