From b8039bf5b329849ae1ad2ad32f5e847437d41edd Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Thu, 13 Jul 2023 20:30:01 +0200 Subject: [PATCH] Fix MINIMAL build Pre-declare struct ucred, to fix build issues on the MINIMAL config: In file included from /usr/src/sys/netpfil/pf/pfsync_nv.c:40: /usr/src/sys/netinet6/ip6_var.h:384:31: error: declaration of 'struct ucred' will not be visible outside of this function [-Werror,-Wvisibility] struct ip6_pktopts *, struct ucred *, int); ^ /usr/src/sys/netinet6/ip6_var.h:408:28: error: declaration of 'struct ucred' will not be visible outside of this function [-Werror,-Wvisibility] struct inpcb *, struct ucred *, int, struct in6_addr *, int *); ^ 2 errors generated. --- sys/netinet6/ip6_var.h | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/netinet6/ip6_var.h b/sys/netinet6/ip6_var.h index bc409780fee..e538afd9399 100644 --- a/sys/netinet6/ip6_var.h +++ b/sys/netinet6/ip6_var.h @@ -346,6 +346,7 @@ extern struct pr_usrreqs rip6_usrreqs; struct sockopt; struct inpcb; +struct ucred; int icmp6_ctloutput(struct socket *, struct sockopt *sopt);