summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2009-09-11 11:39:45 +0000
committerEric S. Raymond <esr@thyrsus.com>2009-09-11 11:39:45 +0000
commit657a827ed48e346b43b611b1bd48bbbb7cefc3f1 (patch)
treeb9f5d7e013b747b588d8002b1ecc79da36363de2 /packet.c
parentdab1629290cc471813952ac03f5b031b7efb2533 (diff)
downloadgpsd-657a827ed48e346b43b611b1bd48bbbb7cefc3f1.tar.gz
Finally found the right set of exclusions to stop splint from choking.
Now to see if I can trim them any.
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/packet.c b/packet.c
index 830ea5ce..e0fb6488 100644
--- a/packet.c
+++ b/packet.c
@@ -32,8 +32,10 @@ others apart and distinguish them from baud barf.
#endif /* S_SPLINT_S */
#include <string.h>
#include <errno.h>
+#ifndef S_SPLINT_S
#include <netinet/in.h> /* for htons() */
#include <arpa/inet.h> /* for htons() */
+#endif /* S_SPLINT_S */
#include "gpsd_config.h"
#include "bits.h"