aboutsummaryrefslogtreecommitdiff
path: root/networking/ntpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ntpd.c')
-rw-r--r--networking/ntpd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/networking/ntpd.c b/networking/ntpd.c
index c4b018778..03fe448ca 100644
--- a/networking/ntpd.c
+++ b/networking/ntpd.c
@@ -51,9 +51,6 @@
51#ifndef IPTOS_LOWDELAY 51#ifndef IPTOS_LOWDELAY
52# define IPTOS_LOWDELAY 0x10 52# define IPTOS_LOWDELAY 0x10
53#endif 53#endif
54#ifndef IP_PKTINFO
55# error "Sorry, your kernel has to support IP_PKTINFO"
56#endif
57 54
58 55
59/* Verbosity control (max level of -dddd options accepted). 56/* Verbosity control (max level of -dddd options accepted).
@@ -1328,7 +1325,9 @@ update_local_clock(peer_t *p)
1328#if !USING_KERNEL_PLL_LOOP 1325#if !USING_KERNEL_PLL_LOOP
1329 double freq_drift; 1326 double freq_drift;
1330#endif 1327#endif
1328#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION
1331 double since_last_update; 1329 double since_last_update;
1330#endif
1332 double etemp, dtemp; 1331 double etemp, dtemp;
1333 1332
1334 abs_offset = fabs(offset); 1333 abs_offset = fabs(offset);
@@ -1356,7 +1355,9 @@ update_local_clock(peer_t *p)
1356 * action is and defines how the system reacts to large time 1355 * action is and defines how the system reacts to large time
1357 * and frequency errors. 1356 * and frequency errors.
1358 */ 1357 */
1358#if !USING_KERNEL_PLL_LOOP || USING_INITIAL_FREQ_ESTIMATION
1359 since_last_update = recv_time - G.reftime; 1359 since_last_update = recv_time - G.reftime;
1360#endif
1360#if !USING_KERNEL_PLL_LOOP 1361#if !USING_KERNEL_PLL_LOOP
1361 freq_drift = 0; 1362 freq_drift = 0;
1362#endif 1363#endif