From 82aa1470c94c55db31c0168d65f8a08fa1d41378 Mon Sep 17 00:00:00 2001 From: Cy Schubert Date: Tue, 6 Jun 2023 06:27:05 -0700 Subject: [PATCH] ntp: Fix build Two files used to obtain time from reference clocks did not include ntp_types.h resulting in an undefined NONEMPTY_TRANSLATION_UNIT. Fixes: e6bfd18d21b2 MFC after: 3 days X-MFC-with: e6bfd18d21b2 --- contrib/ntp/libparse/clk_hopf6021.c | 2 ++ contrib/ntp/libparse/clk_wharton.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/contrib/ntp/libparse/clk_hopf6021.c b/contrib/ntp/libparse/clk_hopf6021.c index b0b0c1ff2a7..a747581b75d 100644 --- a/contrib/ntp/libparse/clk_hopf6021.c +++ b/contrib/ntp/libparse/clk_hopf6021.c @@ -20,6 +20,8 @@ # include #endif +#include + #if defined(REFCLOCK) && defined(CLOCK_PARSE) && defined(CLOCK_HOPF6021) #include "ntp_fp.h" diff --git a/contrib/ntp/libparse/clk_wharton.c b/contrib/ntp/libparse/clk_wharton.c index fbe9cc95f5f..e1ef61d55bd 100644 --- a/contrib/ntp/libparse/clk_wharton.c +++ b/contrib/ntp/libparse/clk_wharton.c @@ -9,6 +9,8 @@ #include #endif +#include + #if defined(REFCLOCK) && defined(CLOCK_PARSE) && defined(CLOCK_WHARTON_400A) /* * Support for WHARTON 400A Series clock + 404.2 serial interface.