summaryrefslogtreecommitdiff
path: root/gpspipe.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpspipe.c')
-rw-r--r--gpspipe.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gpspipe.c b/gpspipe.c
index 7e6a37b1..64cc39e1 100644
--- a/gpspipe.c
+++ b/gpspipe.c
@@ -23,6 +23,8 @@
*
*/
+#include "gpsd_config.h"
+
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
@@ -30,7 +32,9 @@
#include <string.h>
#include <strings.h>
#include <fcntl.h>
+#ifdef HAVE_TERMIOS_H
#include <termios.h>
+#endif /* HAVE_TERMIOS_H */
#include <time.h>
#include <sys/time.h>
#include <sys/types.h>