git: 4cb50d74c19c - main - tcp: improve compilability
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Sep 2025 06:06:54 UTC
The branch main has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=4cb50d74c19c014e8099272777eb20aaf834d61c
commit 4cb50d74c19c014e8099272777eb20aaf834d61c
Author: Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-09-05 06:00:52 +0000
Commit: Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-09-05 06:06:44 +0000
tcp: improve compilability
When building with DDB support, the inclusion of in_kdtrace.h
is needed. Make this explicit and don't rely on tcp_var.h to do this.
This is required for stable/14.
Fixes: a62c6b0de48a ("ddb: add optional printing of BBLog entries")
MFC after: immediately
Sponsored by: Netflix, Inc.
---
sys/netinet/tcp_log_buf.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/sys/netinet/tcp_log_buf.c b/sys/netinet/tcp_log_buf.c
index e24790ece43d..473c534ef83d 100644
--- a/sys/netinet/tcp_log_buf.c
+++ b/sys/netinet/tcp_log_buf.c
@@ -61,6 +61,9 @@
#include <net/vnet.h>
#include <netinet/in.h>
+#ifdef DDB
+#include <netinet/in_kdtrace.h>
+#endif
#include <netinet/in_pcb.h>
#include <netinet/in_var.h>
#include <netinet/tcp_var.h>