summaryrefslogtreecommitdiff
path: root/lcdgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-14 19:04:42 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-14 19:04:42 -0500
commitafce76e3ef85909847596583b5ac0057969cdd8e (patch)
tree551bf32982a835c2a66c6abac44f9abadd756ad5 /lcdgps.c
parent5d629ca37207b04a78ea444e1bd0a96daa7bfaff (diff)
downloadgpsd-afce76e3ef85909847596583b5ac0057969cdd8e.tar.gz
Guard some headers fropm deheader.
Diffstat (limited to 'lcdgps.c')
-rw-r--r--lcdgps.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/lcdgps.c b/lcdgps.c
index 16006400..041cd8e6 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -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 */