summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2012-03-01 11:03:50 -0500
committerEric S. Raymond <esr@thyrsus.com>2012-03-01 11:03:50 -0500
commit727bac0764fd38a1182eab300826183a3a239dbe (patch)
tree76349508f2b3cbec6d7725c3888b50f5d5990985 /ntpshm.c
parent646c88e1967cab18e2c5a50ac5e235ffc2c8a284 (diff)
downloadgpsd-727bac0764fd38a1182eab300826183a3a239dbe.tar.gz
Fix the byuild when pps=false and sys/timepps.h is present.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ntpshm.c b/ntpshm.c
index d0ee1ea6..d365a5d4 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -944,7 +944,7 @@ void pps_thread_activate(struct gps_device_t *session UNUSED)
}
#endif /* defined(PPS_ENABLE) && defined(TIOCMIWAIT) */
-#if defined(HAVE_SYS_TIMEPPS_H)
+#if defined(PPS_ENABLE) && defined(HAVE_SYS_TIMEPPS_H)
void pps_thread_deactivate(struct gps_device_t *session)
/* cleanly terminate device's PPS thread */
{
@@ -960,4 +960,4 @@ void pps_thread_deactivate(struct gps_device_t *session UNUSED)
}
#endif
-#endif /* NTPSHM_ENABLE */
+#endif /* defined(PPS_ENABLE) && defined(HAVE_SYS_TIMEPPS_H) */