Fix NOINET6 build broken by r361575.

Reported by:	ci, hps
This commit is contained in:
Alexander V. Chernikov 2020-05-28 09:52:28 +00:00
parent ccbaa67d8b
commit 9d5df78e64

View File

@ -971,7 +971,7 @@ u_int8_t *
nfscl_getmyip(struct nfsmount *nmp, struct in6_addr *paddr, int *isinet6p)
{
#if defined(INET6) || defined(INET)
int error, fibnum;
int fibnum;
fibnum = curthread->td_proc->p_fibnum;
#endif
@ -1007,6 +1007,7 @@ nfscl_getmyip(struct nfsmount *nmp, struct in6_addr *paddr, int *isinet6p)
#ifdef INET6
if (nmp->nm_nam->sa_family == AF_INET6) {
struct sockaddr_in6 *sin6;
int error;
sin6 = (struct sockaddr_in6 *)nmp->nm_nam;