summaryrefslogtreecommitdiff
path: root/net_gnss_dispatch.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-01-02 22:29:16 +0000
committerEric S. Raymond <esr@thyrsus.com>2010-01-02 22:29:16 +0000
commitd5904b6b45850cc731d45ec81ff2294d0afe26ad (patch)
tree7c4a7359ac46d3a01475b203a17c03d634438e57 /net_gnss_dispatch.c
parentf46e4a8da378d9287824c7ce84ef296effaa3c94 (diff)
downloadgpsd-d5904b6b45850cc731d45ec81ff2294d0afe26ad.tar.gz
David Ludlow's housekeeping and type-cleanup patch.
All regression tests pass,
Diffstat (limited to 'net_gnss_dispatch.c')
-rw-r--r--net_gnss_dispatch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/net_gnss_dispatch.c b/net_gnss_dispatch.c
index c631b4f5..cb2970e2 100644
--- a/net_gnss_dispatch.c
+++ b/net_gnss_dispatch.c
@@ -1,9 +1,13 @@
/* $Id$ */
/* net_gnss_dispatch.c -- common interface to a number of Network GNSS services */
+#include <stdlib.h>
+#include "gpsd_config.h"
#include <sys/types.h>
#ifndef S_SPLINT_S
-#include <sys/socket.h>
+ #ifdef HAVE_SYS_SOCKET_H
+ #include <sys/socket.h>
+ #endif
#include <unistd.h>
#endif /* S_SPLINT_S */
#include <string.h>