git: 82aa1470c94c - main - ntp: Fix build

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 06 Jun 2023 13:30:04 UTC
The branch main has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=82aa1470c94c55db31c0168d65f8a08fa1d41378

commit 82aa1470c94c55db31c0168d65f8a08fa1d41378
Author:     Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-06-06 13:27:05 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-06-06 13:27:05 +0000

    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 b0b0c1ff2a73..a747581b75dc 100644
--- a/contrib/ntp/libparse/clk_hopf6021.c
+++ b/contrib/ntp/libparse/clk_hopf6021.c
@@ -20,6 +20,8 @@
 # include <config.h>
 #endif
 
+#include <ntp_types.h>
+
 #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 fbe9cc95f5f7..e1ef61d55bdb 100644
--- a/contrib/ntp/libparse/clk_wharton.c
+++ b/contrib/ntp/libparse/clk_wharton.c
@@ -9,6 +9,8 @@
 #include <config.h>
 #endif
 
+#include <ntp_types.h>
+
 #if defined(REFCLOCK) && defined(CLOCK_PARSE) && defined(CLOCK_WHARTON_400A)
 /*
  * Support for WHARTON 400A Series clock + 404.2 serial interface.