summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2015-03-26 18:16:10 -0700
committerGary E. Miller <gem@rellim.com>2015-03-26 18:16:10 -0700
commit912d8cb19b6aee8a60eaa256f700e7c92ccae4ac (patch)
tree695e81191870d3a854da171b4418d5f057ce3145
parenta004f26d5d1164b3ff555fb4598bac6542e4e0b7 (diff)
downloadgpsd-912d8cb19b6aee8a60eaa256f700e7c92ccae4ac.tar.gz
Guard header files that raspbian splint hates.
Trying to cherry pick instead of just +siip-sys-headers
-rw-r--r--gpsd.c10
-rw-r--r--gpsd.h-tail4
2 files changed, 8 insertions, 6 deletions
diff --git a/gpsd.c b/gpsd.c
index 3577976c..e9fe50c3 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -16,18 +16,18 @@
#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>
-#include <fcntl.h>
#include <signal.h>
-#include <pthread.h>
#ifndef S_SPLINT_S
+#include <ctype.h> /* raspbian splint hates this */
+#include <pwd.h> /* raspbian splint hates this */
+#include <grp.h> /* raspbian splint hates this */
+#include <fcntl.h> /* raspbian splint hates this */
+#include <pthread.h> /* raspbian splint hates this */
#include <netdb.h>
#ifndef AF_UNSPEC
#include <sys/socket.h>
diff --git a/gpsd.h-tail b/gpsd.h-tail
index a6e8b057..a8a10df2 100644
--- a/gpsd.h-tail
+++ b/gpsd.h-tail
@@ -5,7 +5,9 @@
*/
#endif /* GPSD_CONFIG_H */
-#include <termios.h>
+#ifndef S_SPLINT_S
+#include <termios.h> /* raspbian splint hates this */
+#endif /* S_SPLINT_S */
#include <stdint.h>
#include <stdarg.h>
#include "gps.h"