summaryrefslogtreecommitdiff
path: root/gpsdctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsdctl.c')
-rw-r--r--gpsdctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gpsdctl.c b/gpsdctl.c
index 1c9a0473..9cc48b09 100644
--- a/gpsdctl.c
+++ b/gpsdctl.c
@@ -14,7 +14,9 @@
#include <stdbool.h>
#include <stdlib.h>
#include <stdio.h>
+#ifndef S_SPLINT_S
#include <sys/socket.h>
+#endif /* S_SPLINT_S */
#include "gpsd.h"