aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2016-11-17 16:13:30 +0000
committerRuslan Bukin <br@FreeBSD.org>2016-11-17 16:13:30 +0000
commit6e18247a3d423831d88f204daae4f991e5d72fa3 (patch)
treeefd4c32baa74a0cbba9cf24d832024519dedcfba
parent5515b0cb39fae7d2951b779b64a7e56823ac44c2 (diff)
downloadsrc-6e18247a3d423831d88f204daae4f991e5d72fa3.tar.gz
src-6e18247a3d423831d88f204daae4f991e5d72fa3.zip
Fix build when no INET and INET6 in kernel config.
Submitted by: kan Sponsored by: DARPA, AFRL
Notes
Notes: svn path=/head/; revision=308769
-rw-r--r--sys/kern/vfs_export.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index 988c687bda7c..77a353b3cadb 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -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, void *w)
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_head **prnh, int off)
RADIX_NODE_HEAD_LOCK_INIT(*prnh);
return (*prnh);
}
+#endif
static void
vfs_free_addrlist_af(struct radix_node_head **prnh)