diff options
-rw-r--r-- | gps2udp.c | 2 | ||||
-rw-r--r-- | gpsd.h-head | 1 | ||||
-rw-r--r-- | gpsdclient.c | 1 | ||||
-rw-r--r-- | gpspipe.c | 2 | ||||
-rw-r--r-- | json.c | 1 | ||||
-rw-r--r-- | libgps_shm.c | 1 | ||||
-rw-r--r-- | shared_json.c | 1 | ||||
-rw-r--r-- | shmexport.c | 1 | ||||
-rw-r--r-- | strl.c | 1 |
9 files changed, 9 insertions, 2 deletions
@@ -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> @@ -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> @@ -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 @@ -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" /* |