summaryrefslogtreecommitdiff
path: root/ppsthread.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-29 11:06:47 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-29 11:06:47 -0400
commitbd1ec73631fa12f1523e919bea4fe190d8800f51 (patch)
tree3a920258fa263ff0e668ad1550571698c27c10a1 /ppsthread.c
parenta4721f90221a3e27aa6e7f40e7b159cb169edaac (diff)
downloadgpsd-bd1ec73631fa12f1523e919bea4fe190d8800f51.tar.gz
Compile correctly with pps off.
Diffstat (limited to 'ppsthread.c')
-rw-r--r--ppsthread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ppsthread.c b/ppsthread.c
index f138e4fc..a5243d07 100644
--- a/ppsthread.c
+++ b/ppsthread.c
@@ -35,6 +35,8 @@
#endif /* S_SPLINT_S */
#include "gpsd.h"
+
+#ifdef PPS_ENABLE
#if defined(HAVE_SYS_TIMEPPS_H)
#include <fcntl.h> /* needed for open() and friends */
#endif
@@ -620,5 +622,7 @@ void gpsd_await_pps_initialization(struct gps_context_t *context)
}
#endif /* defined(HAVE_SYS_TIMEPPS_H) */
+#endif /* PPS_ENABLE */
+
/* end */