diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-01-02 22:29:16 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-01-02 22:29:16 +0000 |
commit | d5904b6b45850cc731d45ec81ff2294d0afe26ad (patch) | |
tree | 7c4a7359ac46d3a01475b203a17c03d634438e57 /libgpsd_core.c | |
parent | f46e4a8da378d9287824c7ce84ef296effaa3c94 (diff) | |
download | gpsd-d5904b6b45850cc731d45ec81ff2294d0afe26ad.tar.gz |
David Ludlow's housekeeping and type-cleanup patch.
All regression tests pass,
Diffstat (limited to 'libgpsd_core.c')
-rw-r--r-- | libgpsd_core.c | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/libgpsd_core.c b/libgpsd_core.c index 20457217..4d121792 100644 --- a/libgpsd_core.c +++ b/libgpsd_core.c @@ -1,17 +1,24 @@ /* $Id$ */ /* libgpsd_core.c -- direct access to GPSes on serial or USB devices. */ +#include <stdlib.h> +#include "gpsd_config.h" #include <sys/time.h> -#include <sys/ioctl.h> +#ifdef HAVE_SYS_IOCTL_H + #include <sys/ioctl.h> +#endif /* HAVE_SYS_IOCTL_H */ #ifndef S_SPLINT_S -#include <sys/socket.h> -#include <unistd.h> + #ifdef HAVE_SYS_SOCKET_H + #include <sys/socket.h> + #endif /* HAVE_SYS_SOCKET_H */ + #include <unistd.h> #endif /* S_SPLINT_S */ #include <sys/time.h> -#include <stdlib.h> #include <stdio.h> #include <math.h> #ifndef S_SPLINT_S -#include <netdb.h> + #ifdef HAVE_NETDB_H + #include <netdb.h> + #endif /* HAVE_NETDB_H */ #endif /* S_SPLINT_S */ #include <string.h> #include <errno.h> |