Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Sep 2019 14:07:38 -0000
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r346506 - head/sys/fs/nfs
Message-ID:  <201904212253.x3LMrpZx041237@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Sun Apr 21 22:53:51 2019
New Revision: 346506
URL: https://svnweb.freebsd.org/changeset/base/346506

Log:
  Add #ifdef INET as requested by bz@.

Modified:
  head/sys/fs/nfs/nfs_commonsubs.c

Modified: head/sys/fs/nfs/nfs_commonsubs.c
==============================================================================
--- head/sys/fs/nfs/nfs_commonsubs.c	Sun Apr 21 22:31:52 2019	(r346505)
+++ head/sys/fs/nfs/nfs_commonsubs.c	Sun Apr 21 22:53:51 2019	(r346506)
@@ -898,15 +898,19 @@ nfsm_fhtom(struct nfsrv_descript *nd, u_int8_t *fhp, i
 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:
 		{





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