diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-14 19:04:42 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-14 19:04:42 -0500 |
commit | afce76e3ef85909847596583b5ac0057969cdd8e (patch) | |
tree | 551bf32982a835c2a66c6abac44f9abadd756ad5 /lcdgps.c | |
parent | 5d629ca37207b04a78ea444e1bd0a96daa7bfaff (diff) | |
download | gpsd-afce76e3ef85909847596583b5ac0057969cdd8e.tar.gz |
Guard some headers fropm deheader.
Diffstat (limited to 'lcdgps.c')
-rw-r--r-- | lcdgps.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -36,15 +36,17 @@ #include <sys/types.h> #include <sys/stat.h> +#ifndef __linux__ /* <netdb.h> briongs these in under Linux */ #include <sys/socket.h> -#include <time.h> /* for select() */ #include <netinet/in.h> +#endif /* __linux__ */ +#include <netdb.h> +#include <time.h> /* for select() */ #include <stdlib.h> #include <string.h> #include <math.h> #include <errno.h> #include <fcntl.h> -#include <netdb.h> #ifndef S_SPLINT_S #include <unistd.h> #endif /* S_SPLINT_S */ |