summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gpsd.c2
-rw-r--r--lcdgps.c2
-rw-r--r--net_dgpsip.c2
-rw-r--r--netlib.c1
-rw-r--r--packet.c2
5 files changed, 9 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index b7c0447b..2ace91f7 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -8,7 +8,9 @@
#include <sys/time.h>
#include <sys/stat.h>
+#include <sys/socket.h>
#include <sys/types.h>
+#include <netinet/in.h>
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
diff --git a/lcdgps.c b/lcdgps.c
index f4c74920..e95ba162 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -36,7 +36,9 @@
#include <sys/types.h>
#include <sys/stat.h>
+#include <sys/socket.h>
#include <sys/time.h> /* for select() */
+#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
diff --git a/net_dgpsip.c b/net_dgpsip.c
index 18fb88af..a6646ae2 100644
--- a/net_dgpsip.c
+++ b/net_dgpsip.c
@@ -3,6 +3,8 @@
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
+#include <sys/types.h>
+#include <sys/socket.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
diff --git a/netlib.c b/netlib.c
index cfeb8655..618a9b9b 100644
--- a/netlib.c
+++ b/netlib.c
@@ -3,6 +3,7 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
#include <sys/types.h>
+#include <netinet/in.h>
#include <errno.h>
#include <string.h>
#include <fcntl.h>
diff --git a/packet.c b/packet.c
index 4992662e..764bd391 100644
--- a/packet.c
+++ b/packet.c
@@ -27,6 +27,8 @@ PERMISSIONS
BSD terms apply: see the file COPYING in the distribution root for details.
***************************************************************************/
+#include <sys/types.h>
+#include <netinet/in.h>
#include <stdlib.h>
#include <ctype.h>
#include <string.h>