svn commit: r184681 - head/sys/net

Bjoern A. Zeeb bz at FreeBSD.org
Wed Nov 5 03:54:56 PST 2008


Author: bz
Date: Wed Nov  5 11:54:56 2008
New Revision: 184681
URL: http://svn.freebsd.org/changeset/base/184681

Log:
  Hide the IPv4 init function if the kernel is compiled without INET.
  It is not used in that case and would not compile.

Modified:
  head/sys/net/radix_mpath.c

Modified: head/sys/net/radix_mpath.c
==============================================================================
--- head/sys/net/radix_mpath.c	Wed Nov  5 11:43:01 2008	(r184680)
+++ head/sys/net/radix_mpath.c	Wed Nov  5 11:54:56 2008	(r184681)
@@ -36,6 +36,7 @@
 #include <sys/cdefs.h>
 __FBSDID("$FreeBSD$");
 
+#include "opt_inet.h"
 #include "opt_inet6.h"
 
 #include <sys/param.h>
@@ -308,6 +309,7 @@ rtalloc_mpath_fib(struct route *ro, u_in
 extern int	in6_inithead(void **head, int off);
 extern int	in_inithead(void **head, int off);
 
+#ifdef INET
 int
 rn4_mpath_inithead(void **head, int off)
 {
@@ -321,6 +323,7 @@ rn4_mpath_inithead(void **head, int off)
 	} else
 		return 0;
 }
+#endif
 
 #ifdef INET6
 int


More information about the svn-src-head mailing list