diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-12-22 02:33:20 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-12-22 02:33:20 -0500 |
commit | d9399e29fff4084396eff6069243e1313ea18f9e (patch) | |
tree | 3c9efe43b9c38f5f91e2355c4835301d805dadf7 | |
parent | c0ab7959869bd256d582d67cfae8737d577d816b (diff) | |
download | gpsd-d9399e29fff4084396eff6069243e1313ea18f9e.tar.gz |
Insert SuS headers required for portablity, as revealed by deheader.
-rw-r--r-- | bsd-base64.c | 1 | ||||
-rw-r--r-- | cgps.c | 3 | ||||
-rw-r--r-- | crc24q.c | 2 | ||||
-rw-r--r-- | driver_proto.c | 2 | ||||
-rw-r--r-- | gpsdclient.c | 2 | ||||
-rw-r--r-- | json.c | 5 | ||||
-rw-r--r-- | lcdgps.c | 3 | ||||
-rw-r--r-- | test_mkgmtime.c | 2 |
8 files changed, 18 insertions, 2 deletions
diff --git a/bsd-base64.c b/bsd-base64.c index 3ff88abe..9583c669 100644 --- a/bsd-base64.c +++ b/bsd-base64.c @@ -42,6 +42,7 @@ */ #include <stdlib.h> +#include <ctype.h> #include "gpsd_config.h" #if !defined(HAVE_B64_NTOP) && !defined(HAVE___B64_NTOP) @@ -79,11 +79,14 @@ #define MAX_SATWIN_SIZE (MAX_POSSIBLE_SATS + SATWIN_OVERHEAD) #include <sys/time.h> /* for select() */ +#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <errno.h> #include <curses.h> +#include <time.h> +#include <signal.h> #ifndef S_SPLINT_S #include <unistd.h> #endif /* S_SPLINT_S */ @@ -27,6 +27,8 @@ * BSD terms apply: see the file COPYING in the distribution root for details. */ #include <stdbool.h> +#include <stdio.h> +#include <stdlib.h> #include "crc24q.h" diff --git a/driver_proto.c b/driver_proto.c index bab0b27a..d3d8982c 100644 --- a/driver_proto.c +++ b/driver_proto.c @@ -33,6 +33,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 <stdio.h> +#include <string.h> #if defined(_PROTO__ENABLE) && defined(BINARY_ENABLE) diff --git a/gpsdclient.c b/gpsdclient.c index 59214cca..22f2b0af 100644 --- a/gpsdclient.c +++ b/gpsdclient.c @@ -4,8 +4,10 @@ * 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 <string.h> +#include <strings.h> /* for strcasecmp() */ #include <math.h> #include <assert.h> #include <locale.h> @@ -43,8 +43,8 @@ to use as an offset multiplier. of modifications to a corresponding array of C structs. The trick is that the array object initialization has to specify both the C struct array's base address and the stride length (the size of the C struct). -If you initialize the offset fields with the correct offsetof() calls, -everything will work. Strings are suppported but all string storage +If you initialize the offset fields with the correct offsetof calls, +everything will work. Strings are supported but all string storage has to be inline in the struct. PERMISSIONS @@ -57,6 +57,7 @@ PERMISSIONS #include <stdlib.h> #include <stdarg.h> #include <locale.h> +#include <ctype.h> #include "gpsd_config.h" /* for strlcpy() prototype */ #include "json.h" @@ -51,6 +51,9 @@ #include <math.h> #include <errno.h> #include <fcntl.h> +#include <signal.h> +#include <stdio.h> +#include <time.h> #ifndef S_SPLINT_S #include <unistd.h> #endif /* S_SPLINT_S */ diff --git a/test_mkgmtime.c b/test_mkgmtime.c index d8407003..ef8bd12a 100644 --- a/test_mkgmtime.c +++ b/test_mkgmtime.c @@ -3,6 +3,8 @@ * BSD terms apply: see the file COPYING in the distribution root for details. */ #include <stdlib.h> +#include <stdio.h> +#include <time.h> #include "gps.h" |