svn commit: r346506 - head/sys/fs/nfs
Rick Macklem
rmacklem at FreeBSD.org
Tue Sep 3 14:07:38 UTC 2019
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 at .
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:
{
More information about the svn-src-head
mailing list