summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
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 f000e434..830ea5ce 100644
--- a/packet.c
+++ b/packet.c
@@ -27,7 +27,9 @@ others apart and distinguish them from baud barf.
#include <sys/types.h>
#include <ctype.h>
#include <stdio.h>
+#ifndef S_SPLINT_S
#include <unistd.h>
+#endif /* S_SPLINT_S */
#include <string.h>
#include <errno.h>
#include <netinet/in.h> /* for htons() */