From a6f77c9a6e6aee6429f7f68a5d0caaddd4e72475 Mon Sep 17 00:00:00 2001 From: Rick Macklem Date: Sun, 21 Apr 2019 22:53:51 +0000 Subject: [PATCH] Add #ifdef INET as requested by bz@. --- sys/fs/nfs/nfs_commonsubs.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/fs/nfs/nfs_commonsubs.c b/sys/fs/nfs/nfs_commonsubs.c index f612b6602a43..a7a0aea62db8 100644 --- a/sys/fs/nfs/nfs_commonsubs.c +++ b/sys/fs/nfs/nfs_commonsubs.c @@ -898,15 +898,19 @@ nfsm_fhtom(struct nfsrv_descript *nd, u_int8_t *fhp, int size, int set_true) APPLESTATIC int nfsaddr_match(int family, union nethostaddr *haddr, NFSSOCKADDR_T nam) { +#ifdef INET struct sockaddr_in *inetaddr; +#endif switch (family) { +#ifdef INET case AF_INET: inetaddr = NFSSOCKADDR(nam, struct sockaddr_in *); if (inetaddr->sin_family == AF_INET && inetaddr->sin_addr.s_addr == haddr->had_inet.s_addr) return (1); break; +#endif #ifdef INET6 case AF_INET6: {