aboutsummaryrefslogtreecommitdiff
path: root/contrib/ntp/ntpd/refclock_trak.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ntp/ntpd/refclock_trak.c')
-rw-r--r--contrib/ntp/ntpd/refclock_trak.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/contrib/ntp/ntpd/refclock_trak.c b/contrib/ntp/ntpd/refclock_trak.c
index e7833af7db1f..326a8e92620e 100644
--- a/contrib/ntp/ntpd/refclock_trak.c
+++ b/contrib/ntp/ntpd/refclock_trak.c
@@ -10,13 +10,7 @@
#include <config.h>
#endif
-#if defined(REFCLOCK) && defined(CLOCK_TRAK)
-
-#include <stdio.h>
-#include <ctype.h>
-#ifdef HAVE_SYS_TIME_H
-# include <sys/time.h>
-#endif
+#if defined(REFCLOCK) && defined(CLOCK_TRAK) && defined(PPS)
#include "ntpd.h"
#include "ntp_io.h"
@@ -24,6 +18,9 @@
#include "ntp_stdlib.h"
#include "ntp_unixtime.h"
+#include <stdio.h>
+#include <ctype.h>
+
#ifdef HAVE_SYS_TERMIOS_H
# include <sys/termios.h>
#endif