git: 9866ce5d5c50 - stable/15 - tcp: improve compilability
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Sep 2025 06:08:07 UTC
The branch stable/15 has been updated by tuexen:
URL: https://cgit.FreeBSD.org/src/commit/?id=9866ce5d5c500cea1ecf3cb6d575b6f5e655c657
commit 9866ce5d5c500cea1ecf3cb6d575b6f5e655c657
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:07:52 +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")
Sponsored by: Netflix, Inc.
(cherry picked from commit 4cb50d74c19c014e8099272777eb20aaf834d61c)
---
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>