summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgps.c')
-rw-r--r--libgps.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgps.c b/libgps.c
index 04a42824..cb26b92e 100644
--- a/libgps.c
+++ b/libgps.c
@@ -2,7 +2,9 @@
/* libgps.c -- client interface library for the gpsd daemon */
#include <sys/time.h>
#include <stdio.h>
+#ifndef S_SPLINT_S
#include <unistd.h>
+#endif /* S_SPLINT_S */
#include <stdlib.h>
#include <string.h>
#include <errno.h>