summaryrefslogtreecommitdiff
path: root/net_ntrip.c
diff options
context:
space:
mode:
Diffstat (limited to 'net_ntrip.c')
-rw-r--r--net_ntrip.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/net_ntrip.c b/net_ntrip.c
index 54395e81..55339b54 100644
--- a/net_ntrip.c
+++ b/net_ntrip.c
@@ -1,16 +1,21 @@
/* $Id$ */
/* net_ntrip.c -- gather and dispatch DGNSS data from Ntrip broadcasters */
+#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 /* 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
#endif /* S_SPLINT_S */
#include <string.h>
#include <errno.h>