summaryrefslogtreecommitdiff
path: root/cgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-03 05:06:19 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-03 05:06:19 -0500
commitaf7476965bde4d4564b640ef503e37553302fdf8 (patch)
tree945f64abab8744b7e005398388ef0ac27ece35c1 /cgps.c
parent28ff7510067a5609bc6eec1c4f9ec178488dadf5 (diff)
downloadgpsd-af7476965bde4d4564b640ef503e37553302fdf8.tar.gz
Clean up the code base and add switches so deheader runs clean.
Diffstat (limited to 'cgps.c')
-rw-r--r--cgps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cgps.c b/cgps.c
index 0d5b5589..4fa50190 100644
--- a/cgps.c
+++ b/cgps.c
@@ -78,8 +78,10 @@
/* This is the maximum size we need for the 'satellites' window. */
#define MAX_SATWIN_SIZE (MAX_POSSIBLE_SATS + SATWIN_OVERHEAD)
+#if defined (HAVE_SYS_SELECT_H)
#include <sys/types.h>
#include <sys/select.h>
+#endif
#ifndef S_SPLINT_S
#include <sys/socket.h>
#include <unistd.h>