git: a133ed032a03 - main - net/ntp: Fix two reference clock builds
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 06 Jun 2023 13:44:22 UTC
The branch main has been updated by cy:
URL: https://cgit.FreeBSD.org/ports/commit/?id=a133ed032a03a804d114d38cf0cb289fc4295a49
commit a133ed032a03a804d114d38cf0cb289fc4295a49
Author: Cy Schubert <cy@FreeBSD.org>
AuthorDate: 2023-06-06 13:40:24 +0000
Commit: Cy Schubert <cy@FreeBSD.org>
CommitDate: 2023-06-06 13:40:24 +0000
net/ntp: Fix two reference clock builds
Fix build for hopf6021 and wharton reference clocks.
No PORTREVISION bump is needed since both reference clocks are not
built by default.
Fixes: de4864bd361e
MFH: 2023Q2
---
net/ntp/files/patch-libaprse_clk_wharton.c | 11 +++++++++++
net/ntp/files/patch-libparse_clk_hopf6021.c | 11 +++++++++++
2 files changed, 22 insertions(+)
diff --git a/net/ntp/files/patch-libaprse_clk_wharton.c b/net/ntp/files/patch-libaprse_clk_wharton.c
new file mode 100644
index 000000000000..82df28d4e25b
--- /dev/null
+++ b/net/ntp/files/patch-libaprse_clk_wharton.c
@@ -0,0 +1,11 @@
+--- libparse/clk_wharton.c.orig 2023-06-06 04:33:42.000000000 -0700
++++ libparse/clk_wharton.c 2023-06-06 06:36:02.108114000 -0700
+@@ -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.
diff --git a/net/ntp/files/patch-libparse_clk_hopf6021.c b/net/ntp/files/patch-libparse_clk_hopf6021.c
new file mode 100644
index 000000000000..9b43334551c6
--- /dev/null
+++ b/net/ntp/files/patch-libparse_clk_hopf6021.c
@@ -0,0 +1,11 @@
+--- libparse/clk_hopf6021.c.orig 2023-06-06 04:33:42.000000000 -0700
++++ libparse/clk_hopf6021.c 2023-06-06 06:36:00.964222000 -0700
+@@ -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"