The branch main has been updated by glebius:

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

commit bf3338e74b4432c17c992f46478c69ad020c5307
Author:     Gleb Smirnoff <gleb...@freebsd.org>
AuthorDate: 2025-02-03 07:59:35 +0000
Commit:     Gleb Smirnoff <gleb...@freebsd.org>
CommitDate: 2025-02-03 17:48:41 +0000

    netstat: cleanup includes in mroute6.c
    
    The file obtains some kernel structures in a dirty way and needs
    forward declaration of struct sockopt for that.  Make it explicit
    instead of getting it via headers that were not designed for that.
---
 usr.bin/netstat/mroute6.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/usr.bin/netstat/mroute6.c b/usr.bin/netstat/mroute6.c
index 2a98f26f8b27..0bb44b8292e7 100644
--- a/usr.bin/netstat/mroute6.c
+++ b/usr.bin/netstat/mroute6.c
@@ -70,9 +70,7 @@
 #include <sys/param.h>
 #include <sys/queue.h>
 #include <sys/socket.h>
-#include <sys/socketvar.h>
 #include <sys/sysctl.h>
-#include <sys/protosw.h>
 #include <sys/mbuf.h>
 #include <sys/time.h>
 
@@ -88,6 +86,7 @@
 #include <libxo/xo.h>
 
 #define        KERNEL 1
+struct sockopt;
 #include <netinet6/ip6_mroute.h>
 #undef KERNEL
 

Reply via email to