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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"