Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Feb 2025 18:09:25 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: bf3338e74b44 - main - netstat: cleanup includes in mroute6.c
Message-ID:  <202502031809.513I9PV4085829@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by glebius:

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

commit bf3338e74b4432c17c992f46478c69ad020c5307
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-02-03 07:59:35 +0000
Commit:     Gleb Smirnoff <glebius@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
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502031809.513I9PV4085829>