summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gps2udp.c2
-rw-r--r--gpsd.h-head1
-rw-r--r--gpsdclient.c1
-rw-r--r--gpspipe.c2
-rw-r--r--json.c1
-rw-r--r--libgps_shm.c1
-rw-r--r--shared_json.c1
-rw-r--r--shmexport.c1
-rw-r--r--strl.c1
9 files changed, 9 insertions, 2 deletions
diff --git a/gps2udp.c b/gps2udp.c
index c695ac5a..0f39a661 100644
--- a/gps2udp.c
+++ b/gps2udp.c
@@ -12,6 +12,7 @@
*
*/
+#include <time.h>
#include "gpsd_config.h"
#include <stdio.h>
@@ -22,7 +23,6 @@
#include <strings.h>
#include <fcntl.h>
#include <termios.h>
-#include <time.h>
#include <assert.h>
#include <sys/time.h>
#include <sys/types.h>
diff --git a/gpsd.h-head b/gpsd.h-head
index e19e0382..b05fce9b 100644
--- a/gpsd.h-head
+++ b/gpsd.h-head
@@ -13,6 +13,7 @@ extern "C" {
#include <stdbool.h>
#include <stdio.h>
+#include <time.h> /* for time_t */
#ifndef GPSD_CONFIG_H
/* Feature configuration switches begin here */
diff --git a/gpsdclient.c b/gpsdclient.c
index 3bca35d5..cd4f58c3 100644
--- a/gpsdclient.c
+++ b/gpsdclient.c
@@ -8,6 +8,7 @@
#include <stdlib.h>
#include <string.h>
#include <strings.h> /* for strcasecmp() */
+#include <time.h> /* for time_t */
#include <math.h>
#include <assert.h>
diff --git a/gpspipe.c b/gpspipe.c
index d6602000..df40408c 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -23,6 +23,7 @@
*
*/
+#include <time.h> /* for time_t */
#include "gpsd_config.h"
#include <stdio.h>
@@ -33,7 +34,6 @@
#include <strings.h>
#include <fcntl.h>
#include <termios.h>
-#include <time.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
diff --git a/json.c b/json.c
index 7fb86560..bddf0c5e 100644
--- a/json.c
+++ b/json.c
@@ -67,6 +67,7 @@ PERMISSIONS
#include <stdlib.h>
#include <stdbool.h>
#include <stdarg.h>
+#include <time.h> /* for time_t */
#include <ctype.h>
#include "gpsd_config.h" /* for strlcpy() prototype */
diff --git a/libgps_shm.c b/libgps_shm.c
index dc9bcc2c..90e962c8 100644
--- a/libgps_shm.c
+++ b/libgps_shm.c
@@ -14,6 +14,7 @@ PERMISSIONS
BSD terms apply: see the file COPYING in the distribution root for details.
***************************************************************************/
+#include <time.h> /* for time_t */
#include "gpsd_config.h"
#ifdef SHM_EXPORT_ENABLE
diff --git a/shared_json.c b/shared_json.c
index 25b583fb..5605e319 100644
--- a/shared_json.c
+++ b/shared_json.c
@@ -17,6 +17,7 @@ PERMISSIONS
#include <math.h>
#include <stdbool.h>
+#include <time.h> /* for time_t */
#include "gpsd.h"
#ifdef SOCKET_EXPORT_ENABLE
diff --git a/shmexport.c b/shmexport.c
index 4bfe750a..b4283671 100644
--- a/shmexport.c
+++ b/shmexport.c
@@ -14,6 +14,7 @@ PERMISSIONS
BSD terms apply: see the file COPYING in the distribution root for details.
***************************************************************************/
+#include <time.h> /* for time_t */
#include "gpsd_config.h"
#ifdef SHM_EXPORT_ENABLE
diff --git a/strl.c b/strl.c
index 6ebf126b..d5a81415 100644
--- a/strl.c
+++ b/strl.c
@@ -3,6 +3,7 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*/
#include <string.h>
+#include <time.h> /* for time_t */
#include "gpsd_config.h"
/*