Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Nov 2016 16:13:30 +0000 (UTC)
From:      Ruslan Bukin <br@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308769 - head/sys/kern
Message-ID:  <201611171613.uAHGDUgE096743@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: br
Date: Thu Nov 17 16:13:30 2016
New Revision: 308769
URL: https://svnweb.freebsd.org/changeset/base/308769

Log:
  Fix build when no INET and INET6 in kernel config.
  
  Submitted by:	kan
  Sponsored by:	DARPA, AFRL

Modified:
  head/sys/kern/vfs_export.c

Modified: head/sys/kern/vfs_export.c
==============================================================================
--- head/sys/kern/vfs_export.c	Thu Nov 17 16:06:53 2016	(r308768)
+++ head/sys/kern/vfs_export.c	Thu Nov 17 16:13:30 2016	(r308769)
@@ -61,8 +61,10 @@ __FBSDID("$FreeBSD$");
 
 static MALLOC_DEFINE(M_NETADDR, "export_host", "Export host address structure");
 
+#if defined(INET) || defined(INET6)
 static struct radix_node_head *vfs_create_addrlist_af(
 		    struct radix_node_head **prnh, int off);
+#endif
 static void	vfs_free_addrlist(struct netexport *nep);
 static int	vfs_free_netcred(struct radix_node *rn, void *w);
 static void	vfs_free_addrlist_af(struct radix_node_head **prnh);
@@ -239,6 +241,7 @@ vfs_free_netcred(struct radix_node *rn, 
 	return (0);
 }
 
+#if defined(INET) || defined(INET6)
 static struct radix_node_head *
 vfs_create_addrlist_af(struct radix_node_head **prnh, int off)
 {
@@ -248,6 +251,7 @@ vfs_create_addrlist_af(struct radix_node
 	RADIX_NODE_HEAD_LOCK_INIT(*prnh);
 	return (*prnh);
 }
+#endif
 
 static void
 vfs_free_addrlist_af(struct radix_node_head **prnh)



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