summaryrefslogtreecommitdiff
path: root/gpsutils.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsutils.c')
-rw-r--r--gpsutils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsutils.c b/gpsutils.c
index f30a70e7..76716d10 100644
--- a/gpsutils.c
+++ b/gpsutils.c
@@ -2,7 +2,9 @@
/* gpsutils.c -- code shared between low-level and high-level interfaces */
#include <sys/types.h>
#include <stdio.h>
+#ifndef S_SPLINT_S
#include <unistd.h>
+#endif /* S_SPLINT_S */
#include <stdlib.h>
#include <math.h>
#include <string.h>