summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-12-22 02:33:20 -0500
committerEric S. Raymond <esr@thyrsus.com>2010-12-22 02:33:20 -0500
commitd9399e29fff4084396eff6069243e1313ea18f9e (patch)
tree3c9efe43b9c38f5f91e2355c4835301d805dadf7
parentc0ab7959869bd256d582d67cfae8737d577d816b (diff)
downloadgpsd-d9399e29fff4084396eff6069243e1313ea18f9e.tar.gz
Insert SuS headers required for portablity, as revealed by deheader.
-rw-r--r--bsd-base64.c1
-rw-r--r--cgps.c3
-rw-r--r--crc24q.c2
-rw-r--r--driver_proto.c2
-rw-r--r--gpsdclient.c2
-rw-r--r--json.c5
-rw-r--r--lcdgps.c3
-rw-r--r--test_mkgmtime.c2
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)
diff --git a/cgps.c b/cgps.c
index 313e82a6..b9a7782a 100644
--- a/cgps.c
+++ b/cgps.c
@@ -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 */
diff --git a/crc24q.c b/crc24q.c
index 7d65db47..308ef9eb 100644
--- a/crc24q.c
+++ b/crc24q.c
@@ -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>
diff --git a/json.c b/json.c
index 9f77793c..cc808528 100644
--- a/json.c
+++ b/json.c
@@ -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"
diff --git a/lcdgps.c b/lcdgps.c
index 98415f6e..e78a171f 100644
--- a/lcdgps.c
+++ b/lcdgps.c
@@ -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"