summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver_garmin.c1
-rw-r--r--driver_garmin_txt.c1
-rw-r--r--driver_navcom.c1
-rw-r--r--driver_nmea.c1
-rw-r--r--driver_oncore.c1
-rw-r--r--driver_proto.c1
-rw-r--r--driver_sirf.c1
-rw-r--r--driver_superstar2.c3
-rw-r--r--driver_tsip.c1
-rw-r--r--drivers.c1
-rw-r--r--gpsd.c4
-rw-r--r--gpsdecode.c1
-rw-r--r--gpxlogger.c3
-rw-r--r--json.c1
-rw-r--r--lcdgps.c2
-rw-r--r--libgps_core.c1
-rw-r--r--libgps_json.c1
-rw-r--r--monitor_italk.c1
-rw-r--r--net_dgpsip.c1
-rw-r--r--net_ntrip.c1
-rw-r--r--shared_json.c1
-rw-r--r--test_mkgmtime.c1
-rw-r--r--test_packet.c6
23 files changed, 29 insertions, 7 deletions
diff --git a/driver_garmin.c b/driver_garmin.c
index 97a1d76b..50da268d 100644
--- a/driver_garmin.c
+++ b/driver_garmin.c
@@ -80,6 +80,7 @@
#define __USE_POSIX199309 1
#include <stdio.h>
+#include <stdbool.h>
#include <math.h>
#include <string.h>
#include <errno.h>
diff --git a/driver_garmin_txt.c b/driver_garmin_txt.c
index c1c427c2..d6d459ae 100644
--- a/driver_garmin_txt.c
+++ b/driver_garmin_txt.c
@@ -108,6 +108,7 @@ invalid data.
#include <stdlib.h>
+#include <stdbool.h>
#include <math.h>
#include <string.h>
#include <strings.h>
diff --git a/driver_navcom.c b/driver_navcom.c
index 493887ea..0ec26dbf 100644
--- a/driver_navcom.c
+++ b/driver_navcom.c
@@ -31,6 +31,7 @@
*/
#include <stdio.h>
+#include <stdbool.h>
#include <string.h>
#include <math.h>
#include "gpsd.h"
diff --git a/driver_nmea.c b/driver_nmea.c
index 0ee7dea0..d4f5c389 100644
--- a/driver_nmea.c
+++ b/driver_nmea.c
@@ -4,6 +4,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <math.h>
#include <string.h>
#include <stdarg.h>
diff --git a/driver_oncore.c b/driver_oncore.c
index 5fa3dfc5..7069cf7e 100644
--- a/driver_oncore.c
+++ b/driver_oncore.c
@@ -3,6 +3,7 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
#include <stdio.h>
+#include <stdbool.h>
#include "gpsd.h"
#if defined(ONCORE_ENABLE) && defined(BINARY_ENABLE)
diff --git a/driver_proto.c b/driver_proto.c
index c37e2a61..74ef6750 100644
--- a/driver_proto.c
+++ b/driver_proto.c
@@ -36,6 +36,7 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
#include <stdio.h>
+#include <stdbool.h>
#include <string.h>
#if defined(_PROTO__ENABLE) && defined(BINARY_ENABLE)
diff --git a/driver_sirf.c b/driver_sirf.c
index a8ffe931..386d931c 100644
--- a/driver_sirf.c
+++ b/driver_sirf.c
@@ -29,6 +29,7 @@
#include <stdio.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <string.h>
#include <strings.h>
#include <math.h>
diff --git a/driver_superstar2.c b/driver_superstar2.c
index 1484100a..6dc05d3c 100644
--- a/driver_superstar2.c
+++ b/driver_superstar2.c
@@ -6,9 +6,6 @@
#include <time.h>
#include <string.h>
#include <math.h>
-#ifndef S_SPLINT_S
-#include <unistd.h>
-#endif /* S_SPLINT_S */
#include "gpsd.h"
diff --git a/driver_tsip.c b/driver_tsip.c
index aa4625f4..76fb636f 100644
--- a/driver_tsip.c
+++ b/driver_tsip.c
@@ -8,6 +8,7 @@
#include <sys/time.h> /* for select() */
#include <string.h>
#include <stdio.h>
+#include <stdbool.h>
#include <math.h>
#include <time.h>
#ifndef S_SPLINT_S
diff --git a/drivers.c b/drivers.c
index 73e79688..7fe3b1ff 100644
--- a/drivers.c
+++ b/drivers.c
@@ -4,6 +4,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <string.h>
#include <stdarg.h>
#include <termios.h>
diff --git a/gpsd.c b/gpsd.c
index e648b7d7..0dae2f52 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -9,13 +9,15 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h> /* for select() */
+#include <time.h>
#include <string.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <stdarg.h>
+#include <ctype.h>
#include <setjmp.h>
#include <assert.h>
#include <pwd.h>
-#include <grp.h>
#include <math.h>
#include <syslog.h>
#include <errno.h>
diff --git a/gpsdecode.c b/gpsdecode.c
index 08dae486..cc47e9a3 100644
--- a/gpsdecode.c
+++ b/gpsdecode.c
@@ -4,6 +4,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <string.h>
#include <stdarg.h>
#ifndef S_SPLINT_S
diff --git a/gpxlogger.c b/gpxlogger.c
index f5b90944..b0398938 100644
--- a/gpxlogger.c
+++ b/gpxlogger.c
@@ -2,13 +2,16 @@
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
+#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <syslog.h>
#include <math.h>
+#include <time.h>
#include <errno.h>
#include <libgen.h>
+#include <signal.h>
#include <sys/time.h> /* for select() */
#ifndef S_SPLINT_S
#include <unistd.h>
diff --git a/json.c b/json.c
index 5f9e010f..a1ec95ae 100644
--- a/json.c
+++ b/json.c
@@ -55,6 +55,7 @@ PERMISSIONS
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <stdarg.h>
#include <locale.h>
#include <ctype.h>
diff --git a/lcdgps.c b/lcdgps.c
index 0fd56459..a89257cf 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -50,9 +50,9 @@
#include <string.h>
#include <math.h>
#include <errno.h>
-#include <signal.h>
#include <stdio.h>
#ifndef S_SPLINT_S
+#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>
#include <unistd.h>
diff --git a/libgps_core.c b/libgps_core.c
index 3d38ab85..6da67499 100644
--- a/libgps_core.c
+++ b/libgps_core.c
@@ -5,6 +5,7 @@
*/
#include <stdio.h>
#include <stdlib.h>
+#include <stdbool.h>
#include <fcntl.h>
#include <string.h>
#include <ctype.h>
diff --git a/libgps_json.c b/libgps_json.c
index c38b84f7..bc33b4b9 100644
--- a/libgps_json.c
+++ b/libgps_json.c
@@ -14,6 +14,7 @@ PERMISSIONS
***************************************************************************/
+#include <stdbool.h>
#include <math.h>
#include <string.h>
#include <stddef.h>
diff --git a/monitor_italk.c b/monitor_italk.c
index c61acca3..7e428607 100644
--- a/monitor_italk.c
+++ b/monitor_italk.c
@@ -4,7 +4,6 @@
*/
#include <stdio.h>
-#include <string.h>
#include "gpsd.h"
#include "bits.h"
diff --git a/net_dgpsip.c b/net_dgpsip.c
index f555d20b..822bb18a 100644
--- a/net_dgpsip.c
+++ b/net_dgpsip.c
@@ -5,6 +5,7 @@
*/
#include <sys/types.h>
#include <stdio.h>
+#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
diff --git a/net_ntrip.c b/net_ntrip.c
index 669d8c20..636b5f06 100644
--- a/net_ntrip.c
+++ b/net_ntrip.c
@@ -4,6 +4,7 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
#include <stdio.h>
+#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
diff --git a/shared_json.c b/shared_json.c
index bdcdeef0..b20a184e 100644
--- a/shared_json.c
+++ b/shared_json.c
@@ -16,6 +16,7 @@ PERMISSIONS
***************************************************************************/
#include <math.h>
+#include <stdbool.h>
#include "gpsd.h"
#include "gps_json.h"
diff --git a/test_mkgmtime.c b/test_mkgmtime.c
index ef8bd12a..8235e24d 100644
--- a/test_mkgmtime.c
+++ b/test_mkgmtime.c
@@ -4,6 +4,7 @@
*/
#include <stdlib.h>
#include <stdio.h>
+#include <stdbool.h>
#include <time.h>
#include "gps.h"
diff --git a/test_packet.c b/test_packet.c
index 802f7d56..52e70175 100644
--- a/test_packet.c
+++ b/test_packet.c
@@ -2,13 +2,17 @@
* This file is Copyright (c) 2010 by the GPSD project
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
+#include <stdio.h>
+#include <stdbool.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
+#include <ctype.h>
+#include <sys/types.h>
+#include <fcntl.h>
#ifndef S_SPLINT_S
#include <unistd.h>
#endif /* S_SPLINT_S */
-#include <fcntl.h>
#include "gpsd.h"